Documentation ¶
Index ¶
- Variables
- type Socket
- func (s *Socket) Close(args ...goja.Value)
- func (s *Socket) On(event string, handler goja.Value)
- func (s *Socket) Ping()
- func (s *Socket) Send(message string)
- func (s *Socket) SetInterval(fn goja.Callable, intervalMs float64) error
- func (s *Socket) SetTimeout(fn goja.Callable, timeoutMs float64) error
- type WS
- type WSHTTPResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWSInInitContext = common.NewInitContextError("using websockets in the init context is not supported")
ErrWSInInitContext is returned when websockets are using in the init context
Functions ¶
This section is empty.
Types ¶
type Socket ¶
type Socket struct {
// contains filtered or unexported fields
}
func (*Socket) SetInterval ¶
SetInterval executes the provided function inside the socket's event loop each interval time, which is in ms
Click to show internal directories.
Click to hide internal directories.