Sunday 29 January 2017

Socky - Realtime application framework using WebSockets/JSONRPC

Hi guys,I'm new to this sub so to introduce myself I'd like to share a project I've been working on recently. Socky is a "framework" for the development of realtime applications (web or otherwise) where client/server communication uses WebSockets.http://ift.tt/2kC3qID repo: http://ift.tt/2kgpRWc repo: http://ift.tt/2kBYu6Q've played around with Socket.io, WAMP, and a few other solutions but never really found any of the currently available solutions to be quite what I wanted.The point of "Socky" is to provide a WebSocket replacement for AJAX calls, and allows for RPC calls to be made by both the client and server.For example://listen for "testmethod" call from server socky.onCall('testmethod', call => { console.log('testmethod called...'); socky.respond(call.id, 'it works'); }); Feel free to have a look at the code and let me know what you think. I'd be happy to hear any feedback and of course welcome any contributions.I still haven't written any docs but I have published it on npm, so you run "npm install socky" to get started and check out the tests to see how to run/connect.

Submitted January 29, 2017 at 05:19PM by lioreshai

No comments:

Post a Comment