Documentation ¶
Overview ¶
Package gowebsocket is a websocket library. Currently functional api - will improve and add OO alternative.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebServer ¶
type WebServer struct{}
WebServer is a simple html server, useful for serving a websocket client.
type WebsocketServer ¶
type WebsocketServer struct{}
WebsocketServer is the main struct representing the websocket server.
func NewWebsocketServer ¶
func NewWebsocketServer() *WebsocketServer
NewWebsocketServer returns a new WebsocketServer.
func (*WebsocketServer) Add ¶
func (s *WebsocketServer) Add(route string, handlerFn CustomHandler)
Add adds a route and an associated handler function.
func (*WebsocketServer) Start ¶
func (s *WebsocketServer) Start()
Start starts the server listening for the specified routes.
Click to show internal directories.
Click to hide internal directories.