Questions tagged [autobahn]

Questions related to the Autobahn WebSocket/WAMP open-source frameworks and libraries.

The Autobahn open-source project provides client and server implementations of the WebSocket protocol and the WebSocket Application Messaging Protocol (WAMP). All source code is available as open-source on GitHub Autobahn code repositories.

483 questions
6
votes
1 answer

How to send Autobahn/Twisted WAMP message from outside of protocol?

I am following the basic wamp pubsub examples in the github code: This example publishes messages from within the class: class Component(ApplicationSession): """ An application component that publishes an event every second. """ def…
hazzey
  • 1,179
  • 25
  • 29
6
votes
1 answer

How to add basic auth header in autobahn client tool

I want to add basic auth header in the autobahn client tool. How can I achieve that? Current request GET / HTTP/1.1 User-Agent: AutobahnPython/0.5.2 Host: 10.35.34.172:9000 Upgrade: WebSocket Connection: Upgrade Sec-WebSocket-Key:…
vinbha
  • 91
  • 1
  • 4
5
votes
2 answers

How to connect to binance websocket service using autobahn with asyncio

I'm trying to connect to a binance service through: wss://stream.binance.com:9443/ws/bnbbtc@kline_1m I know it works because have tried with an online webservice checker and it registers to listen to the server and receives 1m candles without…
Notbad
  • 5,936
  • 12
  • 54
  • 100
5
votes
1 answer

Poloniex Push WAMP API through Autobahn dropping connection to peer tcp

I tried to connect to the Push API in poloniex using python and followed the instructions on the answer here: How to connect to poloniex.com websocket api using a python library However I keep getting this error: 2017-06-25T04:07:04 dropping…
James Pinkerton
  • 161
  • 2
  • 14
5
votes
1 answer

Autobahn Asyncio ReconnectingClientFactory

I would like to make a ReconnectingClientFactory with asyncio. In particular to handle the case that the server is not available when the client is started in which case the ReconnectingClientFactory will keep trying. That is something that the…
Dan Schien
  • 1,392
  • 1
  • 17
  • 29
5
votes
2 answers

Connecting to Poloniex Push-API

I want to connect to the Push API of Poloniex. On their page they write the following: In order to use the push API, connect to wss://api.poloniex.com and subscribe to the desired feed. wss = WebSocket Secure -> SSL Protected They also give an…
Bobface
  • 2,782
  • 4
  • 24
  • 61
5
votes
1 answer

Autobahn cannot import name error

I have installed twisted and Autobahn websocket by using pip install twisted pip install autobahn But when I import any of the factories from Autobahn, I get the cannot import name error. >>> from twisted.internet import reactor >>> from…
crazydiv
  • 812
  • 9
  • 30
5
votes
1 answer

Python secure websocket memory consumption

I am writing a web socket server in python. I have tried the approach below with txws, autobahn, and tornado, all with similar results. I seem to have massive memory consumption with secure websockets and I cannot figure out where or why this might…
sambev
  • 131
  • 7
5
votes
1 answer

Imperative client for autobahn WAMP server?

I'm using autobahn to run a websocket server to complement my Django app. Sometimes, I need to send messages from Django to the websocket server, which works fine using the websocket-client module. I would love to use the WAMP protocol instead…
Simon
  • 12,018
  • 4
  • 34
  • 39
4
votes
0 answers

Crossbar says 'no callee registered for procedure'

Despite having two nodes connected to a crossbar router on my local network, they aren't seeing each other and the browser console is saying: Browser console: Potentially unhandled rejection [1] {"error":"wamp.error.no_such_procedure","args":["no…
sscirrus
  • 55,407
  • 41
  • 135
  • 228
4
votes
1 answer

sanic event loop and autobahn

I have a project written with Sanic application = Sanic(__name__) ... application.run(host=application.config.HOST, port=application.config.PORT, debug=application.config.DEBUG, log_config=application.config.LOG) and my site has a…
Hadi Farhadi
  • 1,773
  • 2
  • 16
  • 33
4
votes
0 answers

Python-twisted: Trying to make UDP and websockets work together?

I have a websocket server written using twisted and autobahn. It is an echo server, I want to add the functionality of forwarding messages received from an multicast UDP port to the clients of the websocket server. I tried what I did for the exact…
4
votes
2 answers

Python - Poloniex Push API

I am trying to get live data in Python 2.7.13 from Poloniex through the push API. I read many posts (including How to connect to poloniex.com websocket api using a python library) and I arrived to the following code: from autobahn.twisted.wamp…
riccio777
  • 167
  • 4
  • 19
4
votes
2 answers

Running several ApplicationSessions non-blockingly using autbahn.asyncio.wamp

I'm trying to run two autobahn.asyncio.wamp.ApplicationSessions in python at the same time. Previously, I did this using a modification of the autobahn library as suggested in this post's answer. I now require a bit more professional solution.…
deepbrook
  • 2,523
  • 4
  • 28
  • 49
4
votes
3 answers

how to reconnect after autobahn websocket timeout?

I'm using Autobahn to connect to a websocket like this. class MyComponent(ApplicationSession): @inlineCallbacks def onJoin(self, details): print("session ready") def oncounter(*args, **args2): print("event received: args: {}…
siamii
  • 23,374
  • 28
  • 93
  • 143
1
2
3
32 33