merapi-plugin-websocket
v1.1.1
Published
Websocket plugin for Merapi IOC
Downloads
9
Maintainers
Readme
Merapi Plugin: Websocket
Introduction
This plugin will connect to Socket.io library.
Installation
Add plugin to dependency list in package.json
{
"name": "application",
"version": "1.0.0",
"dependencies": {
"merapi-plugin-websocket": "^0.0.1"
}
}
Install using npm:
npm install merapi-plugin-websocket --save
Usage
Add this several line to your service.yml
name: publisher
version: 1.0.0
plugins:
- websocket
websocket:
port: 3030
connection:
eventOne: componentName.handlerOne
eventTwo: componentName.handlerTwo
eventTree:
subEvent: componentName.handlerTree
subEventTwo:
subSubEvent: componentName.handlerFour