Documentation ¶ Rendered for js/wasm Index ¶ type Client func New(c Config, global js.Value) (*Client, error) func (c *Client) Connect() (client.Conn, error) func (c *Client) Framed() bool type Config type Conn func (c *Conn) Close() error func (c *Conn) Read(b []byte) (int, error) func (c *Conn) Write(b []byte) (int, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } func New ¶ func New(c Config, global js.Value) (*Client, error) func (*Client) Connect ¶ func (c *Client) Connect() (client.Conn, error) func (*Client) Framed ¶ func (c *Client) Framed() bool type Config ¶ type Config struct { TLS bool Domain string Path string Binary bool } type Conn ¶ type Conn struct { // contains filtered or unexported fields } func (*Conn) Close ¶ func (c *Conn) Close() error func (*Conn) Read ¶ func (c *Conn) Read(b []byte) (int, error) func (*Conn) Write ¶ func (c *Conn) Write(b []byte) (int, error) Source Files ¶ View all Source files wswasm.go Click to show internal directories. Click to hide internal directories.