{"modulePath":"github.com/Pholey/bitAPI","version":"v0.0.0-20170122100348-176a01df21df","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package socket\n\n## Types\n\n```go\ntype Channel struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewChannel(ws *websocket.Conn, socket *Socket) (*Channel, error)\n```\n\n```go\nfunc (c *Channel) Connect(msgCh chan *Message, doneCh chan bool) error\n```\n\n```go\nfunc (c *Channel) Done()\n```\n\n```go\nfunc (c *Channel) HasRecipient(id string) bool\n```\n\n```go\nfunc (c *Channel) Listen()\n```\n\n```go\nfunc (c *Channel) Write(msg *Message) error\n```\n\n```go\ntype Message struct {\n\tTo   string `json:\"to\"`\n\tFrom string `json:\"from\"`\n\tBody string `json:\"body\"`\n}\n```\n\n```go\nfunc (m *Message) String() string\n```\n\n```go\ntype Socket struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewSocket() (*Socket, error)\n```\n\n```go\nfunc (s *Socket) Add(c *Channel)\n```\n\n```go\nfunc (s *Socket) Del(c *Channel)\n```\n\n```go\nfunc (s *Socket) Done()\n```\n\n```go\nfunc (s *Socket) Err(err error)\n```\n\n```go\nfunc (s *Socket) GetChannels(c echo.Context) error\n```\n\n```go\nfunc (s *Socket) HTTPForward(c echo.Context) error\n```\n\n```go\nfunc (s *Socket) HasRecipient(id string) bool\n```\n\n```go\nfunc (s *Socket) Listen(c echo.Context) error\n```\n\n","path":"github.com/Pholey/bitAPI/resources/socket","name":"socket","synopsis":"","isRedistributable":true}
