Questions tagged [autobahnjs]

17 questions
5
votes
2 answers

Sinon.js spy.called not working on RPCs

Background I have a server that registers some RPCs using crossbar, and a test that is trying to make sure that the RPCs are being called using sinon. Code server.js "use strict"; const autobahn = require( "autobahn" ); const server = () => { …
Flame_Phoenix
  • 16,489
  • 37
  • 131
  • 266
3
votes
3 answers

autobahn.js file is not accessible from s3

For some time I am using autobahn.js and autobahn.min.js files in my project linked directly from: https://autobahn.s3.amazonaws.com/autobahnjs/latest/autobahn.js and https://autobahn.s3.amazonaws.com/autobahnjs/latest/autobahn.min.js as suggested…
krzysiej
  • 889
  • 9
  • 22
3
votes
1 answer

reestablish WAMP subscriptions after reconnect

I'm using autobahn-js (0.11.2) in a web browser and the crossbar message router (v17.2.1) in the backend. In case of a network disconnect (e.g. due to poor network) the autobahn-js client can be configured to try to reconnect periodically. Now in…
markop
  • 186
  • 11
2
votes
0 answers

autobahn js + thruway php error in connection esablishment

I'm using a PHP thruway library + autobahn.js. Right now I am trying to execute the example from thruway documentation. I ran a SimpleWebRouter and tried to establish connection using autobahn.js. I changed a listener ip to 0.0.0.0:9090, but…
thalegion
  • 23
  • 5
2
votes
1 answer

How to parse message on server side with Thruway

I want to use websocket for a voting application. There is two parts: one is a chat channel and an other one is a command channel where information about the question, the available answers, the countdown etc will travel. On the client side, I use…
Guillaume
  • 133
  • 6
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
1
vote
1 answer

What value to set for proxy_read_timeout in Nginx to prevent WebSocket timeout in browser

The browser kept disconnecting the socket connection after a minute. I am using Ratchet in the server-side and autobahn js on the client-side. After a minute of unuse, the socket disconnected with 1006 error code, and during my research, I found…
Daryl Aranha
  • 106
  • 1
  • 8
1
vote
1 answer

Autobahn-JS doesn't receive subscription for publish on same page (sample)

I have a crossbar.io server setup and I am trying the example code in a browser (chrome 81.x) on https://github.com/crossbario/autobahn-js // 1) subscribe to a topic function onevent(args) { console.log("Event:", args[0]); } …
BrianP
  • 45
  • 1
  • 7
1
vote
2 answers

Error during web socket handshake; websocket connection failed, using autobahn.js

I am trying to create a websocket server using Ratchet, React and Autobahn. When trying to connect I get this error in console autobahn.min.js:196 WebSocket connection to 'ws://localhost:8090/' failed: Error during WebSocket handshake:…
z0mbieKale
  • 969
  • 1
  • 14
  • 44
1
vote
1 answer

Start crossbar.io programmatically

Objective I am have a simple publish server (in nodejs, using autobahn.js) that receives data from a machine and then publishes it to interested subscribers. I am currently doing integration tests and I need to know: If crossbar is running, I need…
Flame_Phoenix
  • 16,489
  • 37
  • 131
  • 266
1
vote
2 answers

How to make Autobahn-JS work in QML?

we want to use WAMP protocol to my server client applications. I have found Autobahn-js which implements The Web Application Messaging Protocol (WAMP). we would like to use QML for designing the frontend (thin client) and target Android, IOS,…
vishnu
  • 363
  • 3
  • 20
0
votes
0 answers

PubSub not working between RLink connected routers

We are having an issue with publish in crossbar io 22.6.1 and previous versions with Rlinks. We require Rlinks to forward local topic publications and RPC’s to cloud and vice versa. Setup: There is a crossbar router running on a local machine and…
Skully17
  • 1
  • 1
0
votes
1 answer

Crossar.io authentication failed and connection dropped on trying got Handshake with Autobahn

I got theses errors while implement login (with wampcra) using Autobahn JS to Crossbar.io: 2018-04-13T09:04:34-0300 [Router 6948] failing WebSocket opening handshake ('This server only speaks WebSocket subprotocols wamp.2.cbor.batched,…
Rafael Freitas
  • 103
  • 1
  • 8
0
votes
1 answer

Integration AutobahnJS with Vue.js

I'm looking for an easy way to integrate Vue.js with AutobahnJS. I've already checked this repo for guidance/template, but my main problem is that Autobahn has two layers of "wait": First you create a Connection/Session instance You wait for it to…
lazos
  • 21
  • 4
0
votes
1 answer

Thruway WebSocket connection on localhost

Following the instructions from https://github.com/voryx/Thruway I am trying to set up a websocket server on localhost (Windows) which will only give me WebSocket connection to 'ws://127.0.0.1:9090/' failed: Error in connection establishment:…
ju_
  • 569
  • 1
  • 4
  • 17
1
2