Comments (3)
Hi @manatlan
Thanks for your question. I'll add to the docs a more complete example. But yes, it's quite possible. It's all determined by your config of Crossbar.
E.g. http://wampy.readthedocs.io/en/latest/a_wampy_client.html
See the default for localhost configured here: https://github.com/noisyboiler/wampy/blob/master/wampy/peers/routers.py#L19
Which points at what Crossbar.io would consider a default location.
Here is the configuration for localhost: https://github.com/noisyboiler/wampy/blob/master/wampy/testing/configs/crossbar.json#L35
When I get a little time later this week I'll update master and readthedocs and catch up with you to make sure you have had success.
I've tested this myself with an instance of Crossbar running here: http://wampy.online/
Hope this helps. Short answer: It's all in the Crossbar configuration file
from wampy.
But yes, it's quite possible. It's all determined by your config of Crossbar.
Yes, it's all the problem ;-)
My client is on another host, where there is no crossbar config.json at all.
So I try to fake it, by doing something like that :
class Fake:
pass
c=Fake()
c.host="manatlan.myhost.fr"
c.port=10001
c.realm="realm1"
c.can_use_tls=True
c.url="wss://manatlan.myhost.fr:10001/ws"
c.ipv=4
with Client(router=c) as client:
But, got :
cannot connect to: "wss://manatlan.myhost.fr:10001/ws": no suitable implementation for this system
I'm investigating on that; currently
It could be really cool to have something like the wampy js project, as simple as :
var client = new Wampy('wss://manatlan.myhost.fr:10001/ws', { realm: "realm1" } )
from wampy.
your current error sounds like the python 2.7 issue linked to at the bottom of this PR: #37
will take on board your suggestion.
from wampy.
Related Issues (20)
- Error when transferring big, really big strings HOT 3
- wampy requires too old gevent package HOT 2
- Wrong arg for socket.connect() HOT 1
- wampy 'run' command broken HOT 2
- Doc : how to setup the URL in the config.json file of crossbar HOT 5
- Dependency issue: No module named tenacity HOT 2
- Example: Ticket authentication HOT 5
- Double slash in path HOT 3
- flask example HOT 7
- unale to run the example HOT 10
- Please, implement ping from client to Crossbar HOT 7
- Cannot receive result from RPC to autobahn callee HOT 3
- client can't connect to crossbar universal transport HOT 2
- feature request: expose session timeout to Client & caller HOT 13
- MonkeyPatchWarning HOT 3
- Please, do not use strict dependencies (==) in setup.py, it leads to conflicts with subdependencies of other libraries in the same project HOT 2
- wampy run command not working HOT 2
- Help With Coverage HOT 1
- Is there a file (like CHANGE.rst) or documentation where I can find what changed in each version (to decide if it is worth upgrading)? HOT 2
- Python 3.7 Support HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wampy.