yakety0.1.6 • Public • Published
Bi-directional node to node messaging and request-reply.
Both the server and client can send and receive messages as well as requests-replys.
Yakety is a bit like a RESTful service, but allows the server to instigate requests to the client, plus fire-and-forget messages. Yakety will also maintain persistent connections by automatically reconnecting clients. Yakety is for back-end node to node communications, not a browser compatible solution.
npm install yakety
See examples folder.
const yakety = ;var options =protocol: 'ws' // or 'wss' for secure.slowHandshake: true // true: can do your own authorization and handshake or close socket.port: 8080;var server = ;server;// auth clients:server;server;
const yakety = ;var options =protocol: 'ws' // or 'wss' for secure.hostname: '127.0.0.1'port: 8080path: '/foo/bar/?hello=world'auth: 'username:password';var client = ;client;client;client;client;client;client;