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
2
votes
1 answer

Why is Autobahn Twisted Websocket server is not completing handshake with javascript client?

I'm trying to use a twisted websocket server and connect it to a javascript client on localhost, not through a network. The server and client see each other but they can't complete the handshake. Yes I'm using a Hixie-76 wrapper provided by txWS…
hietpasd
  • 455
  • 2
  • 10
2
votes
2 answers

ReactJS: Transferring Props

I'm in the midst of doing up a realtime dashboard application in ReactJS for monitoring sensors. I'm using AutobahnJS + Websockets on PHP to stream data. This is an abstraction of my dashboard in component view. Abstraction of dashboard in…
2
votes
0 answers

Handshake problems

I am having a bit of a problem when using crossbar. I start running autobahn python backend and autobahn js frontend and everything seems normal until I get this error: 2016-08-01T14:12:40+0000 [Router 9051] failing WebSocket opening handshake…
newguy
  • 69
  • 1
  • 9
2
votes
0 answers

Adding WSS to Websocket/Autobahn/WAMP/Twisted

There doesn't seem to be much out there right now on how to properly add WSS support to an Autobahn/Twisted setup. I'm starting with the Crossbar serial2ws example, which shows a WS-based connection between frontend and backend. I'd like to know how…
sscirrus
  • 55,407
  • 41
  • 135
  • 228
2
votes
0 answers

WAMP with Django App using Python 2.7 AND 3.4 - is it possible?

The essence of the question is: Is it possible to use WAMP notifications in a Django application supporting both Python 2.7 and 3.4, considering that code should be running and only be interrupted if a Remote Procedure Call is made? (That is, it's…
Denise
  • 21
  • 2
2
votes
1 answer

Bridging two realms/subscribing one client to multiple realms

I'm looking into designing a WAMP/Crossbar application with two or more realms; one realm would be for backend messaging, while a second would essentially expose a public API to frontend clients. Now, at some point messages need to cross between…
deceze
  • 510,633
  • 85
  • 743
  • 889
2
votes
1 answer

How to pass realm in AutobahnConnection android?

I am using AutobahnConnection for ws communication. I have created the object of AutobahnConnection and passed the wsUri but I am unable to find a way to pass "realm" with it. It is compulsory for me to pass it. I have explored lot of places but I…
Toppers
  • 559
  • 3
  • 11
2
votes
0 answers

Reference autobahn twisted sendmessage from another class not working

I am trying to use the sendMessage function provided by WebSocketServerProtocol in a seperate file/class but getting exceptions. class MyServerProtocol(WebSocketServerProtocol): def onMessage(self, payload, isBinary): #input = payload …
user1601716
  • 1,893
  • 4
  • 24
  • 53
2
votes
1 answer

Websockets connection lost on Android Autobahn sometimes

I have a chat app on Android and also on iOS. On Android I'm using Autobahn. On iOS I'm using SocketRocket. On the server side I'm using Autobahn for Python. Sometimes my messages will fail to send on Android because the connection is lost. I…
Andy
  • 1,815
  • 2
  • 22
  • 49
2
votes
1 answer

Callbacks from autobahn WebSocketClientProtocol to another object

Firstly, there is an IO class, which on __init__ is passed the asyncio loop object (io = IO(loop)), created earlier in the main class. IO class then at some point initializes the Socket class by doing self.socket = Socket(self), so that the socket…
simon
  • 550
  • 1
  • 5
  • 14
2
votes
0 answers

Making an independent RPC server with autobahn wamp (twisted)

I need to create an independent class that provides an RPC server running in its own Python process using wamp and autobahn. Following some guides found here, I managed to create this server in these classes saved into the file…
link
  • 21
  • 3
2
votes
0 answers

How can I create/request additional stateful workers in Crossbar.io and keep them isolated?

I'm developing a Python web application where each user gets a session, and the session is stateful. Each session exposes RPCs and topics which enables the user to interact with it (e.g. create object, delete object, etc.). I've been thinking about…
trianta2
  • 3,952
  • 5
  • 36
  • 52
2
votes
2 answers

ImportError: No module named twisted.websocket

I have tried one of example web-socket client codes in autobahn web site. But it gives me the error ImportError: No module named twisted.websocket even though I have already installed autobahn. When I try to install "twisted" explicitly it tells me…
paarandika
  • 1,238
  • 12
  • 21
2
votes
1 answer

Exiting Python Program after closing connection in Twisted

So I have this little side project which uses websockets in python from autobahn twisted. The connection between client and server and data transfer works perfectly but I'm having trouble gracefully exiting the program after the TCP connection…
Joey Bose
  • 39
  • 1
  • 8
2
votes
1 answer

Terminate previous autobahn websocket call when a new message arrives

I am designing a feature that gives autocomplete-like search results through a websocket. When the user types fast enough, often their previous query becomes outdated because they are already asking for new information. Is there any way to recognize…
Gus
  • 1,905
  • 6
  • 23
  • 37