Documentation ¶
Overview ¶
Package ws implements an simple websocket transport for mangos. This transport is considered EXPERIMENTAL.
Index ¶
Constants ¶
View Source
const ( // OptionWebSocketMux is a retrieve-only property used to obtain // the *http.ServeMux instance associated with the server. This // can be used to subsequently register additional handlers for // different URIs. This option is only valid on a Listener. // Generally you use this option when you want to use the standard // mangos Listen() method to start up the server. OptionWebSocketMux = "WEBSOCKET-MUX" // OptionWebSocketHandler is used to obtain the underlying // http.Handler (websocket.Server) object, so you can use this // on your own http.Server instances. It is a gross error to use // the value returned by this method on an http server if the // server is also started with mangos Listen(). This means that you // will use at most either this option, or OptionWebSocketMux, but // never both. This option is only valid on a listener. OptionWebSocketHandler = "WEBSOCKET-HANDLER" )
Some special options
Variables ¶
This section is empty.
Functions ¶
func NewTransport ¶
NewTransport allocates a new inproc:// transport.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.