Descriptiongo.net/websocket: allow server configurable
Add websocket.Server to configure WebSocket server handler.
- Config.Header is additional headers to send, so you can use it
to send cookies or so.
To read cookies, you can use Conn.Request().Header.
- factor out Handshake.
You can set func to check origin, subprotocol etc.
Handler checks origin by default.
Fixes issue 4198.
Fixes issue 5178.
Patch Set 1 #Patch Set 2 : diff -r 4e0dc83f5a85 https://code.google.com/p/go.net #Patch Set 3 : diff -r 4e0dc83f5a85 https://code.google.com/p/go.net #
Total comments: 6
Patch Set 4 : diff -r 9c2295dac419 https://code.google.com/p/go.net #Patch Set 5 : diff -r 9c2295dac419 https://code.google.com/p/go.net #
Total comments: 2
MessagesTotal messages: 19
|