emitter

package
v0.0.0-...-72cc135 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter struct {
	// contains filtered or unexported fields
}

Emitter ... Socket.io Emitter

func New

func New(opts Options) Emitter

New ... Creates new Emitter using options

func (Emitter) Emit

func (emitter Emitter) Emit(args ...interface{}) bool

Emit ... Send the packet.

func (Emitter) In

func (emitter Emitter) In(room string) Emitter

In ... Limit emission to a certain `room`.`

func (Emitter) Of

func (emitter Emitter) Of(nsp string) Emitter

Of ... To Limit emission to certain `namespace`.

func (Emitter) To

func (emitter Emitter) To(room string) Emitter

To ... Limit emission to a certain `room`.

type Options

type Options struct {
	Host     string
	Password string
	Key      string
}

Options ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL