--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Sep 7, 2013 11:04 PM, "Vasiliy Tolstov" <v.to...@selfip.ru> wrote:
>
> 2013/9/6 Fumitoshi Ukai (鵜飼文敏) <uk...@google.com>:
> > I think server should choose one protocol in Server.Handshake.
> > your Server.Handshake could set wsConfig.Protocol to []string{"binary"} or
> > []string{"base64"}.
>
>
> Is that possible to support two protocols in same time?
what do you mean?
websocket client/server may support several protocols but a websocket connection uses one protocol (client requests a list of protocol, server choose one from the list in opening handshake).
http://tools.ietf.org/html/rfc6455
The |Sec-WebSocket-Protocol| request-header field can be used to indicate what subprotocols (application-level protocols layered over the WebSocket Protocol) are acceptable to the client. The server selects one or none of the acceptable protocols and echoes that value in its handshake to indicate that it has selected that protocol.
ukai
2013/9/9 Fumitoshi Ukai (鵜飼文敏) <uk...@google.com>:
> what do you mean?Thanks. Sorry for delay.
>
> websocket client/server may support several protocols but a websocket
> connection uses one protocol (client requests a list of protocol, server
> choose one from the list in opening handshake).
>
> http://tools.ietf.org/html/rfc6455
>
> The |Sec-WebSocket-Protocol| request-header field can be
> used to indicate what subprotocols (application-level protocols
> layered over the WebSocket Protocol) are acceptable to the client.
> The server selects one or none of the acceptable protocols and echoes
> that value in its handshake to indicate that it has selected that
> protocol.
I'm try to proxy novnc connection to real vnc server. Code is very
simple, but my websocket handler not run.
I'm patch server.go to printf error message and i get when connect to
my server via novnc this message in console
missing or bad WebSocket-Protocol