temp: autobahn/server.go

This commit is contained in:
misu 2018-04-01 15:12:58 +09:00
parent 360a199e48
commit 658a2fb894
1 changed files with 5 additions and 4 deletions

View File

@ -14,13 +14,14 @@ import (
"time"
"unicode/utf8"
"github.com/gorilla/websocket"
"github.com/smith-30/websocket"
)
var upgrader = websocket.Upgrader{
ReadBufferSize: 4096,
WriteBufferSize: 4096,
EnableCompression: true,
ReadBufferSize: 4096,
WriteBufferSize: 4096,
EnableCompression: true,
AllowServerContextTakeover: true,
CheckOrigin: func(r *http.Request) bool {
return true
},