Skip to content

Commit 658a2fb

Browse files
author
misu
committed
temp: autobahn/server.go
1 parent 360a199 commit 658a2fb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/autobahn/server.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ import (
1414
"time"
1515
"unicode/utf8"
1616

17-
"github.com/gorilla/websocket"
17+
"github.com/smith-30/websocket"
1818
)
1919

2020
var upgrader = websocket.Upgrader{
21-
ReadBufferSize: 4096,
22-
WriteBufferSize: 4096,
23-
EnableCompression: true,
21+
ReadBufferSize: 4096,
22+
WriteBufferSize: 4096,
23+
EnableCompression: true,
24+
AllowServerContextTakeover: true,
2425
CheckOrigin: func(r *http.Request) bool {
2526
return true
2627
},

0 commit comments

Comments
 (0)