1.1.3 • Published 7 years ago

simosocket v1.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

A simple event based socket server. Start the server by calling the init function.

var simosocket = require('simosocket')(<PORT>, callback);

Connect to another simosocket server:

simosocket.connect(<PORT>, <IP>);

Add an event callback:

simosocket.addEventListener('eventKey', callback);

Remove the callback:

simosocket.removeEventListener('eventKey', callback);

Emit event:

simosocket.emit('eventKey', data);

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.32

8 years ago

1.0.31

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago