emitter

package
v0.0.0-...-6f9c365 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(e *Emitter)

Dump ... Print emitter details

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 (e *Emitter) Emit(args ...interface{}) bool

Emit ... Send the packet.

func (*Emitter) EmitTo

func (e *Emitter) EmitTo(rooms []string, args ...interface{}) bool

func (*Emitter) In

func (e *Emitter) In(room string) *Emitter

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

func (*Emitter) Of

func (e *Emitter) Of(nsp string) *Emitter

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

func (*Emitter) To

func (e *Emitter) To(room string) *Emitter

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

type Options

type Options struct {
	Host      string
	Password  string
	Key       string
	RedisPool *redis.Pool
}

Options ...

Jump to

Keyboard shortcuts

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