0.5.13 • Published 8 years ago

origami2-stack-io v0.5.13

Weekly downloads
2
License
ISC
Repository
-
Last release
8 years ago

Origami 2 stack socket.io helper

constructor

Params:

  • privateKey requred: stack private key

.getStack

Returns: underlying stack instance

.getNameRegistry

Returns: underlying name registry instance

.authorizePlugin

Params:

  • plugin name required: plugin name
  • public key required: plugin public key

.authorizeTokenProvider

Params:

  • plugin name required: token provider name
  • public key required: token provider public key

.listenServer

Creates a socket.io that listens to the node.js http or https server and attaches to it using .listenIo.

Params:

  • server required: http or https node.js style server

.listenIo

Attaches to a socket.io instance object. For each connected socket, invokes .listenSocket.

Params:

.listenSocket

Handles incoming connections on the socket instance. It is a node.js event-emitter or a socket.io style socket object.

Params:

  • socket required: socket to attach the stack to
0.5.13

8 years ago

0.5.11

8 years ago

0.5.9

8 years ago

0.5.8

8 years ago

0.5.6

8 years ago

0.5.4

8 years ago

0.5.3

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.4

8 years ago

0.4.3

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago