node-red-contrib-viseo-socketio

    0.3.0 • Public • Published

    Node-RED

    Nodes to send/receive data using Socket.io.

    These nodes use Socket.io.

    This node is part of project node-red-contrib-viseo powered by VISEO Technologies. Please find the node documentation in the Node-RED info tab.

    Here is a French Article on Bot Ecosystem and more.

    Quick Start

    npm install node-red-contrib-viseo-socketio
    

    Client code example

    var socket = io('https://myserver.com', { path: '/myPath/socket.io', secure: true });
     
    socket.on('myNamespace', function (data) {
        if (data.event) socket.emit('myNamespace', { type: "event", content: 'ok' });
    });
        
    socket.on('disconnect', function () {
        console.log('you have been disconnected');
        socket.removeAllListeners('myNamespace');
        socket.removeAllListeners('disconnect');
        socket.removeAllListeners('reconnect');
        socket.removeAllListeners('connect');
    });
     
    socket.on('reconnect', function () {
        console.log('you have been reconnected');
    });
        
    socket.on('connect', function () {
        console.log('you have been connected');
    });

    Getting Help

    A documentation is available on this Wiki.

    For further help, or general discussion, please use the github issue tracker and in order to be labeled with question tag please specify :

    • Your message is a question / discussion
    • The module or node name

    Contributing

    This project adheres to the Contributor Covenant 1.4. By participating, you are expected to uphold this code. Please report unacceptable behavior to any of the project's core team.

    Authors

    This project is a creation of VISEO Technology.

    Copyright and license

    Copyright 2016-2019 VISEO under the Apache 2.0 license. Copyright 2012-2019 SARAH under the Apache 2.0 license.

    Install

    npm i node-red-contrib-viseo-socketio

    DownloadsWeekly Downloads

    5

    Version

    0.3.0

    License

    Apache-2.0

    Unpacked Size

    14.8 kB

    Total Files

    8

    Last publish

    Collaborators

    • jpencausse
    • klervix
    • tothi-viseo