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
0
votes
0 answers

Autobahn python twisted wamp client examples give TypeError for _parseClientTCP()

I wanted to run the Autobahn Python twisted examples listed here https://github.com/tavendo/AutobahnPython/tree/master/examples/twisted/wamp/basic. However, running the client.py always give me TypeError: $ python client.py -c…
0
votes
1 answer

Server port config lost?

I'm trying to get the Autobahn example to work under a virtual env with Python 3.3 and asyncio 0.4.1, but Chrome keeps displaying a 1006. After discovering the debug option (factory.debug = True), I encountered the following server…
Jeroen Vlek
  • 307
  • 4
  • 15
0
votes
1 answer

websocket : python server and client js -> didn't work

I am trying to use websocket over the web, with a python server and a javascript client. For python, I am using an Autobahn (http://autobahn.ws/python/) to create a websoket server. When I use a python client (still with autobahn), all work fine.…
Army
  • 11
  • 1
  • 3
0
votes
1 answer

How do you share state between protocols in Twisted?

I have two protocols, one a WebSocket server the other a ZeroMQ pull socket. I want to forward things received my ZMQ to the WebSocket. Is this possible? class WebSocketProtocol(WebSocketServerProtocol): def onMessage(self, msg, binary): …
nickponline
  • 25,354
  • 32
  • 99
  • 167
0
votes
1 answer

Autobahn Server connection loss issue

I am using Autobahn library for web socket connection. My backend server is php. I am facing WebSockets connection lost issue very frequently when i have started socket connection. How to overcome this issue? Is there any way to connect to socket…
Dhrupal
  • 1,863
  • 1
  • 23
  • 38
0
votes
2 answers

Autobahn.js - How to pass data on subscribe

I am using Ratchet and Autobahn.js. I want to make some user validation on subscribe, so I need to pass the session key to the Ratchet WAMP server. Can you tell me how can I pass some data to the server on subscribe event?
V.S.
  • 1
  • 2
0
votes
0 answers

onClose() doesn't execute when turning Connection off

I'm facing the following issue: I'm using the de.tavendo.autobahn lib to handle WS connections. I run my app on a Samsung Galaxy s4 mini device, when I run my app, I connect to my WS server and after that I turn the WiFi off I expect receiving a…
onizukaek
  • 1,082
  • 1
  • 14
  • 38
0
votes
1 answer

Android How to test the Autobahn WebSocket ConnectionHandler onClose()method?

I'm trying to handle a WS connection loss on the android system and, following the error code, try to reopen the connection, reset the client, etc... So I actually want to test my handling process, in the Autobahn refs, I have all the possible…
onizukaek
  • 1,082
  • 1
  • 14
  • 38
0
votes
1 answer

Autobahn PHP client

I have a python autobahn script (websock) running and working perfectly with the browser, i need to send data from another server running PHP to the python server. is there any PHP websock clients that are compatible with the latest autobahn…
Rami Dabain
  • 4,709
  • 12
  • 62
  • 106
0
votes
2 answers

Autobahn 0.7.3 - Proxied Websocket fails when a client is behind a http Proxy

I'm proxying my test websocket using nginx from 9000 to 80 port and all my tests are ok until the client is behind a web proxy, then the handshake process fails, where can be the problem? Thanks in advance for your time. I'm getting these…
chespinoza
  • 2,638
  • 1
  • 23
  • 46
0
votes
0 answers

Autobahn.js - subscribe doesn't work with websockets

I'm using Ratchet WebSockets and Autobahn.js for two-way client-server communication. I've installed everything, opened the ports, it's been weeks (yes, literally weeks) and it still doesn't work. I think I've narrowed it down to Autobahn's…
sveti petar
  • 3,637
  • 13
  • 67
  • 144
0
votes
2 answers

Event handling in Autobahn Python

I want my websocket client to close connection as soon as my_flag is set to True. Here's my socket class: class BridgeSocket(WebSocketClientProtocol): def __init__(self,factory,my_flag): self.my_flag = my_flag Now, my_flag is set as…
crazydiv
  • 812
  • 9
  • 30
0
votes
1 answer

autobahn websocket pubsub publish in a while loop

I am using the autobahn websocket with the pubsub. I have a service that gets data and collects it and puts it in a topic in Redis I then want to listen for new messages and then publish to a topic with the autobahn pubsub. It works fine when the…
Joshi
  • 57
  • 9
0
votes
1 answer

Android app throws exception with Tornado 3.1. Works with Tornado 2.1

I'm developing an Android app which communicates with a web server and needs push notifications from the server. This app runs successfully and as expected with Tornado 2.1 as web server and using the weberknecht websockets in the Android client…
0
votes
0 answers

Symmetric RPC with AutobahnJS

Using WAMP over Websocket, with AutobahnPy server and AutobahnJS client. I'd like to call a PRC method on the client from the server side, ie. I'd like my RPC to be symmetric. There is an example with symmetric RPC, but both sides are implemented in…
klozovin
  • 2,363
  • 2
  • 22
  • 30