0.5.12 • Published 8 years ago

origami2-client-io v0.5.12

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

Origami client socket.io helper

constructor

Params:

  • privateKey required: private key to encrypt the communication with

.createFactorySocket

Returns: a promise to be resolved with a factory object or to be rejected. The factory object takes a token parameter to use with the client. Params:

  • socket required: a socket object throgh to which establish the communication with.

Please note that the socket will use several layers. The other end is supposed to be using the stack socket.io helper

.listenSocket

Returns: a promise to be resolved with a API client or to be rejected. Params:

  • socket required: a socket object throgh to which establish the communication with.
  • token optional: the token to use with the client

.connect

Returns: a promise to be resolved with a API client or to be rejected. Params:

  • url required: the url to which to connect to using socket.io
  • token optional: the token to use with the client
0.5.12

8 years ago

0.5.11

8 years ago

0.5.10

8 years ago

0.5.9

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.1

8 years ago

0.4.0

8 years ago