wamp.io
wamp.io copied to clipboard
can you give complete examples for wamp.io
The examples/ directory provides complete examples for the wamp.io server side.
This library does not provide the client side, you can try to use any WAMP client implementation (like Autobahn.js). If I find the time, I can post a client example as well.
i issued a pull request that contains exactly this, client side implementation (just rpc for now) with client side example, please consider merging it
Great, thanks! I'll have a look soon!
@nicokaiser Please include client example from @lrascao I'm sure this would be helpful for folks like me evaluating wamp.io
@nevf A simple rpc client example is in the readme.md file
@lrascao Thanks, yes I found that, but this is for a wamp.io client, and I was wanting an example that used Autobahn.js in the Browser and wamp.io on the server. In the end I wrote a simple client.
I'm in the midst of enhancing wamp.io and have created a fork for this, but I haven't pushed any of my updates as yet.
@nevf i had the same requirement as you so i made the client part of wamp.io api compatible with Autobahn.js. In wamp.io you use wamp = require('wamp.io'); wamp.connect(...
in AutoBahn you say ab.connect(...
in my code i use the same .js both in Node and in the browser hope this helps