mod: examples/autobahn/server.go to pass build go 1.4, 1.5

This commit is contained in:
misu 2018-04-06 14:01:48 +09:00
parent 811803b3ed
commit 6caf089088
1 changed files with 4 additions and 5 deletions

View File

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