Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForwardSDStream ¶
func ForwardSDStream(ctx context.Context, clientID string, connection *Connection, communication *models.Communication, captureDevice *capture.Capture)
func WebsocketHandler ¶
Types ¶
type Connection ¶
type Connection struct { Socket *websocket.Conn Cancels map[string]context.CancelFunc // contains filtered or unexported fields }
func (*Connection) WriteJson ¶
func (c *Connection) WriteJson(message Message) error
Concurrency handling - sending messages
func (*Connection) WriteMessage ¶
func (c *Connection) WriteMessage(bytes []byte) error
Click to show internal directories.
Click to hide internal directories.