Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server is just a parent for json-rpc server using websockets
func (*Server) WebsocketHandler ¶
func (s *Server) WebsocketHandler(w http.ResponseWriter, r *http.Request)
Http server handler to upgrade net.Conn to jrpc Conn and forwards connection handling to the connection gorutines.
func (*Server) WebsocketHandlerGin ¶ added in v0.0.3
Go gin handler. There is a bug that this handler does not work with gin Group. Have no idea why. So its mandatory to use gin router.GET() to register the route.
Click to show internal directories.
Click to hide internal directories.