mirror of https://github.com/gorilla/websocket.git
mod: examples/autobahn/server.go to pass build go 1.4, 1.5
This commit is contained in:
parent
811803b3ed
commit
6caf089088
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue