Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core interface { SyncBook(dex string, base, quote uint32) (*orderbook.OrderBook, core.BookFeed, error) AckNotes([]dex.Bytes) }
Core specifies the needed methods for Server to operate. Satisfied by *core.Core.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a websocket hub that tracks all running websocket clients, allows sending notifications to all of them, and manages per-client order book subscriptions.
func (*Server) HandleConnect ¶
HandleConnect handles the websocket connection request, creating a ws.Connection and a connect thread. Since the http.Request's Context is canceled after ServerHTTP returns, a separate context must be provided to be able to cancel the hijacked connection handler at a later time since this function is not blocking.
Click to show internal directories.
Click to hide internal directories.