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

Python websocket server-client (PubSub) Restreamer

I'm, getting WebSocket data from a website, code is written in python and uses autobahn, twisted, threading for WebSocket handling. The process follows ws.subscribe() for subscribing to different items and ws.unsubscribe() to…
Dr.PB
  • 959
  • 1
  • 13
  • 34
2
votes
0 answers

How to use autobahn sendmessage() from seperate thread (asyncio)?

I want to use sendMessage() from outside the MyServerProtocol from a separate thread to send a message to the client. I am trying something very similar to this and this, which did not work. The first solution uses twisted and the second uses…
cpfour
  • 31
  • 4
2
votes
1 answer

Autobahn websocket client in Quart (async Flask) application

Good evening everyone. I'm not quite new to this place but finally decided to register and ask for a help. I develop a web application using Quart framework (asynchronous Flask). And now as application became bigger and more complex I decided to…
Andrew K
  • 41
  • 4
2
votes
1 answer

WebSocket React Native

I'm new to react native moved from ReactJS I thought I can use same packages as my previous pure Reactjs app but I was wrong. What I'm trying to do is to make a websocket connection. I'm recently using autobahnJS package WAMP2 in my ReactJS app but…
Laura delgado
  • 362
  • 2
  • 8
  • 21
2
votes
1 answer

Basic Autobahn/Twisted example not working as executable in Python 3.5

I just took this example directly from Autobahn, saved it as a Python script, then transferred it to a Debian 9 distribution running Python 3.5.3. I'm trying to convert this file into an executable binary. I saved the file as defer4.py. I then…
sscirrus
  • 55,407
  • 41
  • 135
  • 228
2
votes
0 answers

how to set auto-reconnect=True when connecting with autobahn.twisted.component

When trying to connect a python app to a Crossbar router using the recommended component-decorator approach, how and where would i pass the auto_reconnect=True value to the transport. I can set the parameters in Component.transports, but that alone…
stk
  • 55
  • 6
2
votes
1 answer

asyncio: unable to create new event loop

I am using Python 3.6.2, on Fedora 26 Workstation. Below is some scrapbook code which demonstrates my issue: EDIT: added Sam Hartman's suggestion to code. import asyncio, json from autobahn.asyncio.websocket import WebSocketClientProtocol,…
James Paul Turner
  • 791
  • 3
  • 8
  • 23
2
votes
1 answer

Process messages from autobahn Subscriptions asynchronously, non-blocking

I have a python "Device" running in a docker container. It's connected to a Crossbar-router, receiving autobahn/WAMP event messages on subscribed channels. When a certain event is published, my Device is calling a method that's finishing in a few…
stk
  • 55
  • 6
2
votes
0 answers

Tableau WAMP Data Connector

Tableau has several data connectors. These all seem to use a request/response mechanism that pulls / polls for data updates. I have a data service that talks WAMP (web application messaging protocol) using crossbar.io (router) and autobahn-python…
victtim
  • 790
  • 5
  • 17
2
votes
2 answers

Python Twisted - How to send the data over the connected socket connections?

I've a server as follow:- class MyServerProtocol(WebSocketServerProtocol): def onConnect(self, request): print("Client connecting: {0}".format(request.peer)) def onOpen(self): print("WebSocket connection open.") def…
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
2
votes
2 answers

Websocket with Autobahn stop responding after some hours

I have a weird problem with Autobahn|JS and the push API on Poloniex.com. I connect to their API to fetch all messages in their chat and after 1-2 hours, the websocket close without errors, nothing to help me to debug. I have tested the behavior in…
coolfarmer
  • 505
  • 6
  • 16
2
votes
1 answer

AutoBahn / Twisted "Unexpected response code 200"

I am attempting to run a Python WebSocket server with AutoBahn[twisted]. Here is the code in my server (Python): *various imports* class webSocket(WebSocketServerProtocol): def onConnect(self, request): print("some request connected…
acfluff
  • 25
  • 3
2
votes
4 answers

Reading Messages on Poloniex Trollbox with Python autbahn or other socket module?

Poloniex doesn't return every message to my socket. I read the messages with the following code and sometimes I get continuous message numbers, but sometimes there are like 10 messages missing: from autobahn.asyncio.wamp import…
sunwarr10r
  • 4,420
  • 8
  • 54
  • 109
2
votes
0 answers

Slow response time from Twisted Web Server

I've created a web server using Twisted to handle requests for a "real time" game. The server loops at 60hz on a separated Thread and updates all the clients. Setup: Twisted 16.6.0 Debian 64 bits Python 2.7.12 The problem is when no messages are…
Devester
  • 1,183
  • 4
  • 14
  • 41
2
votes
1 answer

Using aurelia-cli with npm packages containing relative ".js"-suffixed requirejs imports (specifically autobahn)

I'm trying to add the AutobahnJS library to my Aurelia application which is using the new aurelia-cli requirejs-based dependency management feature. After installing autobahn using npm: npm install autobahn And then editing aurelia.json to provide…
Hans L
  • 5,845
  • 4
  • 22
  • 21