GithubHelp home page GithubHelp logo

Comments (3)

noisyboiler avatar noisyboiler commented on September 4, 2024

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.

manatlan avatar manatlan commented on September 4, 2024

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.

noisyboiler avatar noisyboiler commented on September 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.