1.1.1 • Published 6 years ago

merapi-plugin-websocket v1.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

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