Questions tagged [sockjs]

SockJS is a browser JavaScript library that provides a WebSocket-like object that gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication channel between the browser and the web server.

SockJS is a browser JavaScript library that provides a WebSocket-like object. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication channel between the browser and the web server.

Under the hood SockJS tries to use native WebSockets first. If that fails it can use a variety of browser-specific transport protocols and presents them through WebSocket-like abstractions.

SockJS-client is intended to work for all modern browsers and in environments which don't support WebSocket protocol, for example behind restrictive corporate proxies. [ https://github.com/sockjs/sockjs-client ]

SockJS-node is a Node.js server side counterpart of SockJS-client browser library written in CoffeeScript. [ https://github.com/sockjs/sockjs-node ]

650 questions
0
votes
1 answer

Error opening websocket connection using spring 4

I am trying to create a websocket using this tutorial. Everything is good except that when I try to open websocket connection I get the following error on my browser console and nothing happens at all. Please help me out. Error: Opening web…
Rahul Singh
  • 892
  • 9
  • 24
0
votes
1 answer

Meteor http get retrieving only a subset of headers

In my Meteor (1.2) application, I make a client-side HTTP.get call over https to a remote server supporting CORS. var getUrl= "https://remoteserver/; HTTP.call('GET', getUrl , {}, function (error, response) { console.log (response); } Now, the…
dragonmnl
  • 14,578
  • 33
  • 84
  • 129
0
votes
0 answers

Sockjs > chat-like application in web and mobile app. how to load test the server?

Sockjs > I have a chat-like application in mobile and web. I want to do load testing for my server and check its performance. I have my app and web built in JS. I need a testing environment where I can execute my JS function many times so that I can…
Tarun Jain
  • 58
  • 6
0
votes
0 answers

Shiny Server sockjs "Another Connection Still Open"

I have a shiny app which I am hosting on an AWS Ubuntu server. Suddenly, the session randomly crashes within about 1 minute of loading the app. It is not due to clicking any particular widget or selector. The error I get in Network -> Response in…
Hamilton Blake
  • 622
  • 1
  • 6
  • 19
0
votes
1 answer

Can any other javascript client library, apart from socjjs, be used with spring websocket

Spring websocket implements SockJs protocol at server and sockjs client can be used to interact with it. Is there any other equivalant library which can be used? We need to send query string with the sockjs comet URL but it seems it is not…
cpandey05
  • 1,241
  • 2
  • 17
  • 30
0
votes
1 answer

Node application Primus client's emitted data not received by Primus server

I have an AngularJS application as a Primus client and it is able to connect to the Primus server and emit to the Primus server too without any issues. I built a new NodeJS application but acts as a Primus client. It's on the same machine as my…
devwannabe
  • 3,160
  • 8
  • 42
  • 79
0
votes
0 answers

AngularJS. Work with sockets by STOMP in factory

I have some problem with socket factory in AngularJS. I want to create my personal factory for work with sockets by STOMP. My code: angular.module('SocketApp',['SocketApp.controllers']) .factory('socketFactory', function($rootScope) { return { …
Nata
  • 41
  • 2
  • 8
0
votes
0 answers

SubProtocolWebSocketHandler - No handlers

I have this ugly error during deploying Spring app on JBoss. 18:11:16,025 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/consumer]] (MSC service thread 1-7) Exception sending context initialized event to listener…
Lukasz Ciesluk
  • 718
  • 1
  • 17
  • 29
0
votes
0 answers

How to rate limit messages on SockJS (Node.JS)

I'm working on a chat project based on Node.JS + SockJS (https://github.com/IgorAntun/node-chat) and I'm not sure on how to implement a rate limit so clients can't spam/flood the servers. Example: User X sent over 5 messages in less than Y seconds,…
Igor Antun
  • 116
  • 1
  • 2
  • 14
0
votes
1 answer

Spring-MVC Websockets with SockJS on JBoss: Cannot upgrade from HTTP/1.1 without IO events

My aim: I want to broadcast a message to all clients on my page when a specific event occurs. This will probably happen all 15 seconds. I wanted to work with Websockets and it looks pretty good at the moment. After watching different talks and read…
R79
  • 1
  • 3
0
votes
1 answer

How to get websocket response on server with spring+stomp+sockjs?

In my javascript I create a websocket: