wamp.io icon indicating copy to clipboard operation
wamp.io copied to clipboard

can you give complete examples for wamp.io

Open wyysf opened this issue 11 years ago • 7 comments

wyysf avatar May 14 '13 12:05 wyysf

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.

nicokaiser avatar May 15 '13 07:05 nicokaiser

i issued a pull request that contains exactly this, client side implementation (just rpc for now) with client side example, please consider merging it

lrascao avatar May 15 '13 09:05 lrascao

Great, thanks! I'll have a look soon!

nicokaiser avatar May 15 '13 09:05 nicokaiser

@nicokaiser Please include client example from @lrascao I'm sure this would be helpful for folks like me evaluating wamp.io

nevf avatar Jul 04 '13 08:07 nevf

@nevf A simple rpc client example is in the readme.md file

lrascao avatar Jul 15 '13 10:07 lrascao

@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 avatar Jul 15 '13 12:07 nevf

@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

lrascao avatar Jul 15 '13 12:07 lrascao