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

AutobahnPython Server HTML5 Front end

I have this AutobahnPython server up and running fine. https://github.com/tavendo/AutobahnPython/blob/master/examples/websocket/streaming/streaming_server.py I want to attach a HTML5 Front end for capture of web cam video and audio. How do I get the…
0
votes
1 answer

Twisted Perspective Broker with AutobahnPython

I'm way out of my comfort zone here and i'm a tad confused one how i'm meant to log in. Autobahn provides a way to use RPC calls to the Python Server, however Twisted only appears to provide documentation on how to use Twisted for the client. In…
Leinad177
  • 51
  • 1
  • 7
0
votes
1 answer

then not called on call method in autobahn js

Then not run in this script. Call function on websocket server running well. // WAMP server var wsuri = 'ws://localhost:8080'; // connect ab.connect(wsuri, // WAMP session was established function (session) { // asynchronous RPC,…
0
votes
2 answers

How do I force the sendMessage in my Autobahn websocket server to send data without delay

I am trying to write a client/server apps using websocket. I am thinking about using Autobahn websocket as my communication medium. The client is going to send a command to the server to perform a task and then wait for a series of progress…
0
votes
1 answer

Send json with autobahn python

I am trying to send the json content from a url widh sendMessage to a client with. def broadcast(self): response = urllib2.urlopen('http://localhost:8001/json?as_text=1') data = json.load(response) for c in self.clients: …
Newcoma
  • 799
  • 4
  • 13
  • 31
0
votes
1 answer

Clean way to limit the subscribers in the Publish & Subscribe model

In the Publish & Subscribe model using autobahn, I would like to limit the number of subscribers for a given @exportSub(...). How do you know the number of subscribers? (From examples) class MyTopicService(object): def __init__(self,…
luismartingil
  • 1,029
  • 11
  • 16
0
votes
2 answers

Can't get AutoBahn Websocket to Connect

I am trying some of the websocket client libraries developed for Android usage. I am now fiddling with the AutoBahn library and can't seem to get the "example" client to connect to my server. I am using the following code: try { …
Walter Kelt
  • 2,199
  • 1
  • 18
  • 22
0
votes
1 answer

does AutobahnJS support binary messages?

When I send a binary message from a Python server to a JavaScript client, an exception is thrown from JSON.parse at this codeline. I'm sending the message like this: server.sendMessageHybi(myBinaryChunk, binary=True) On the receiving end, the data…
prideout
  • 2,895
  • 1
  • 23
  • 25
0
votes
1 answer

send file using WebSocket in Android

I want to send image or text file using WebSocket in android as of now i am using AutoBahnAndroid to create a pubsub model , but i need a feature to send files.
Hunt
  • 8,215
  • 28
  • 116
  • 256
0
votes
1 answer

Autobahn Android : How to disconnect to the server

I'm using Jetty WebSockets for the server side and Autobahn Android for the client one. A simple connection between server and client works fine. But I'm having some trouble when I try to handle the loss of connection. On Android, what I have is…
brunettia
  • 135
  • 4
  • 17
0
votes
1 answer

autobahn mosquitto server chat

I´m trying to connect to a mosquitto broker using autobahn python. If I use sub.py that has this code inside: import mosquitto def on_connect(mosq, obj, rc): print("rc: "+str(rc)) def on_message(mosq, obj, msg): print(msg.topic+"…
bogdanioanliviu
  • 87
  • 1
  • 1
  • 8
0
votes
1 answer

Android - Autobahn web socket communication

I am working on Web socket communication with Autobahn library. The problem I have is after connecting server, then message should be sent without connection again. But the message is sent with different connection that it connects to server every…
user2500696
  • 65
  • 1
  • 7
0
votes
1 answer

Android - Autobahn Websocket sending message error(NullPointerException)

I am working on websocket communication with Autobahn. On the main.class of my app, I set to call 'connect()' when users click a button. // Toggle Button event tButton = (ToggleButton) findViewById(R.id.toggleButton1); …
user2500696
  • 65
  • 1
  • 7
0
votes
2 answers

Php ratchet websocket $conn->send($msg)! How to get this messenge in client?

Here my code (websocket php using rachet and wamp server! public function onClose(ConnectionInterface $conn) { $conn->send("Close client"); } I will using $conn->send() to send a message for all client but i don't know how to get this message…
Viet Nguyen
  • 2,285
  • 2
  • 26
  • 43
0
votes
1 answer

Can't get Autobahn example to work (js and python)

I am trying to get started with WAMP using the AutobahnPython and AutobahnJS library, but I can't get the official examples to work. Here is what I did: pip-2.7 install autobahn # this gave me ab 0.5.14, but I tried 0.6-git too git clone…
Fabian Henze
  • 980
  • 1
  • 10
  • 27