Versions in this module Expand all Collapse all v0 v0.0.6 Mar 2, 2021 Changes in this version + type ConnectionOptions struct + Proxy func(*http.Request) (*url.URL, error) + Subprotocols []string + UseCompression bool + UseSSL bool + type Socket struct + Conn *websocket.Connection + ConnectionOptions ConnectionOptions + IsConnected bool + OnBinaryMessage func(data []byte, socket Socket) + OnConnectError func(err error, socket Socket) + OnConnected func(socket Socket) + OnDisconnected func(err error, socket Socket) + OnPingReceived func(data string, socket Socket) + OnPongReceived func(data string, socket Socket) + OnTextMessage func(message string, socket Socket) + RequestHeader http.Header + Url string + WebsocketDialer *goraws.Dialer + func New(url string) Socket + func (socket *Socket) Close() + func (socket *Socket) Connect() + func (socket *Socket) SendBinary(message []byte) + func (socket *Socket) SendText(message string)