0.5.13 • Published 9 years ago

origami2-stack-io v0.5.13

Weekly downloads
2
License
ISC
Repository
-
Last release
9 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

9 years ago

0.5.11

9 years ago

0.5.9

9 years ago

0.5.8

9 years ago

0.5.6

10 years ago

0.5.4

10 years ago

0.5.3

10 years ago

0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago

0.4.4

10 years ago

0.4.3

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago