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
22
votes
3 answers

Python - Running Autobahn|Python asyncio websocket server in a separate subprocess or thread

I have a tkinter based GUI program running in Python 3.4.1. I have several threads running in the program to get JSON data from various urls. I am wanting to add some WebSocket functionality to be able to allow program to act as a server and allow…
user2662241
  • 529
  • 2
  • 6
  • 15
15
votes
1 answer

Sending JSON data over WebSocket from Matlab using Python Twisted and Autobahn

I'm trying to create a connection from Matlab to stream JSON frames over a WebSocket. I've tested my python installation of autobahn and twisted using the following. Working Example Matlab Code Sample driver code that uses the JSONlab toolbox to…
Cameron Lowell Palmer
  • 21,528
  • 7
  • 125
  • 126
13
votes
1 answer

Autobahn sending user specific and broadcast messages from external application

Totally new to websockets. I am having a bit of trouble understanding how to interact with python Autobahn / twisted from another application and cannot seem to find any useful examples. I have a Python application running that needs on certain…
someuser
  • 2,279
  • 4
  • 28
  • 39
13
votes
2 answers

How to forward a websocket server in localhost with ngrok

I' trying to run a websocket server on local host and forward it to web using ngrok. But couldn't figure it how. These are the original code's from AutobahnPython git repository https://github.com/tavendo/AutobahnPython. Server code: from…
AEla
  • 173
  • 2
  • 2
  • 9
10
votes
1 answer

twisted websocket chatserver openid authentication

i have a python chatserver that uses twisted and autobahn websockets for connection. factory = MessageServerFactory("ws://localhost:9000", debug=debug, debugCodePaths=debug) factory.protocol =…
dnanon
  • 540
  • 5
  • 19
9
votes
1 answer

Autobahn, leave onMessage block

I have an autobahn Websocket Server with the typical onX functions in it's protocol. My problem is that I can't find a way to exit onX, while keep doing the various stuff that I wanted to do when the specific message arrived. More specifically in my…
Tasos
  • 1,575
  • 5
  • 18
  • 44
8
votes
1 answer

What is the 'twisted' way of consuming messages from rabbitmq and forwarding them through its client connections?

I am writing a websocket server in twisted to learn the framework. It will be receiving messages from a rabbitmq broker, and and sending out updates to connected clients. If I want to broadcast/multi-cast many messages at a time through many client…
Jaigus
  • 1,422
  • 1
  • 16
  • 31
8
votes
1 answer

WebSocket closes after 1000 messages

I'm writing an app to stream messages to the browser from Apache Kafka using a WebSocket. When the server isn't consuming messages for a while and the offset gets behind, the websocket closes after either 1000 or 2000 messages. The number seems to…
Alex S
  • 25,241
  • 18
  • 52
  • 63
8
votes
1 answer

What is the AutobahnJS realm for?

Just wondering what the mysterious realm field in AutobahnJS is. From the docs, creating a connection is as follows: var connection = new autobahn.Connection({ url: 'ws://127.0.0.1:9000/', realm: 'realm1' }); I don't set a realm server-side…
Czar Pino
  • 6,258
  • 6
  • 35
  • 60
8
votes
2 answers

Writing an "interactive" client with Twisted/Autobahn Websockets

Maybe I'm missing something here in the asynchronous designs of Twisted, but I can't seem to find a way to call the sendMessage() method "externaly". By this I mean, sending messages without being solely at the callback methods of…
abranches
  • 251
  • 1
  • 7
8
votes
1 answer

How to add PyPi dependencies to DEB package

I created some python app using autobahn and packaged it using baazar builddeb. In python setup.py file I added requires tag with all the required dependencies. Is it possible to tell debian package installer to install these packages? I added some…
marcinpz
  • 675
  • 7
  • 15
7
votes
0 answers

Websocket multiple Channels vs. One Channel + Server Side handling [GroupChat]

Let's say we want to create private chat rooms, where user can chat in small groups. A user can join multiple / x groups. In each case, I need to create a unique group on the server and subscribe user to these. Which approach is the recommended /…
user3746259
  • 1,491
  • 2
  • 23
  • 46
7
votes
2 answers

sendMessage from outside in autobahn running in separate thread

I want to call sendMessage method from outside of MyServerProtocol class and send a message to connected clients. I use threading to do this. When I use this code : from autobahn.twisted.websocket import WebSocketServerProtocol,…
alireza
  • 1,173
  • 4
  • 19
  • 40
6
votes
1 answer

How to re-register a WAMP callee after a reconnect using Autobahn Python with Twisted ReconnectingClientFactory?

I have an Autobahn Python client application using Twisted which is connected to a Crossbar.io server. The client application can successfully reconnect after losing network connectivity using the ReconnectingClientFactory. The client registers a…
Harold Short
  • 171
  • 9
6
votes
1 answer

How to configure Autobahn(crossbar.io) for dynamic chat rooms?

I love crossbar.io and how it works(personally). But I would like to know how we could setup the architecture for a typical dynamic chat application using Autobahn(Crossbar.io). Dynamic chat here means, individual chat room created for each url. For…
Kamalakannan J
  • 2,818
  • 3
  • 23
  • 51
1
2 3
32 33