You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Excerpt of the file transport.go in package transport:
/**Connection factory for given transport*/typeTransportinterface {
/** Get client connection */Connect(urlstring) (connConnection, errerror)
/** Handle one server connection */HandleConnection(w http.ResponseWriter, r*http.Request) (connConnection, errerror)
/** Serve HTTP request after making connection and events setup */Serve(w http.ResponseWriter, r*http.Request)
}
Excerpt of the file server.go in package gosocketio, look the parameter is tr transport.Transport
In server examples to use we have:
server := gosocketio.NewServer(transport.GetDefaultWebsocketTransport())
But
transport.GetDefaultWebsocketTransport()
in package transport doesn't match withfunc NewServer(tr transport.Transport) *Server
in file server.goExcerpt of the file wesocket.go in package transport:
Excerpt of the file transport.go in package transport:
Excerpt of the file server.go in package gosocketio, look the parameter is
tr transport.Transport
Excerpt of the file server.go in package main directory examples, look, the parameter doesn't match with
func NewServer
Thank you for attention
The text was updated successfully, but these errors were encountered: