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

Choosing between Engine.IO and SockJS

How to choose between Engine.IO and SockJS? Are they competing and this is just a matter of taste and opinion, or there is some logic when choosing between them?
exebook
  • 32,014
  • 33
  • 141
  • 226
0
votes
2 answers

Store SockJS connection on redis

I need to offload connections from the node server to redis, so I could update (and restart) the node server on a live system. Then pull the connections back from redis into node. Is this possible with SockJS connections?
Rob Fox
  • 5,355
  • 7
  • 37
  • 63
0
votes
0 answers

What client to use for load testing comet application irrespective of comet server

We are in process of developing an app and we started with: Spring SockJs Java server with Servlet 3.0 container (Async support) SockJs javascript client. To test the load aspects, I had written a client using Bayeux API -this was for WebSockets…
cpandey05
  • 1,241
  • 2
  • 17
  • 30
0
votes
1 answer

Adjust the logger verbosity level of Sock.js, like in Socket.io

In Socket.IO I could adjust the "verbosity" of the logger by editing the log level option: The amount of detail that the server should output to the logger. 0 - error 1 - warn 2 - info 3 - debug Now I'm using Sock.js. My log file gets filled by…
franzlorenzon
  • 5,845
  • 6
  • 36
  • 58
0
votes
2 answers

Start object from setInterval?

I have the following reconnect method for Sockjs which almost is fully working: (function() { // Initialize the socket & handlers var connectToServer = function() { var warbleSocket = new SockJS('http://url.com:5555/warble'); …
Alosyius
  • 8,771
  • 26
  • 76
  • 120
0
votes
1 answer

Sending/reciving data from sockjs server in java?

I want to communicate with a sockjs server from my java client. Example server code: var http = require('http'); var sockjs = require('sockjs'); var node_static = require('node-static'); // 1. Echo sockjs server var sockjs_opts = {sockjs_url:…
Alosyius
  • 8,771
  • 26
  • 76
  • 120
0
votes
1 answer

Can I add cookie with Spring SockJs websocket implementation

Can I add custom cookies over websocket in Spring SockJS implementation? The way we can add it with http request/ response? Forget to mention that I see way to read cookie from headers :: HttpHeaders headers= session.getHandshakeHeaders(); -But I do…
cpandey05
  • 1,241
  • 2
  • 17
  • 30
0
votes
1 answer

Spring SockJS unable to find registered handlers

I have registered handler for the SockJS service as @Bean public SimpleUrlHandlerMapping handlerMapping() { SockJsService sockJsService = new DefaultSockJsService(sockJsTaskScheduler()); Map urlMap = new HashMap
cpandey05
  • 1,241
  • 2
  • 17
  • 30
0
votes
1 answer

Implementing a scalable multiroom chat system

I've been looking into sockjs-tornado recently and am working on a chat function for a social networking site. I'm trying to get a feel for common methods used in building scalable multiroom chat functionality. I'll outline a couple of the methods…
eatonphil
  • 13,115
  • 27
  • 76
  • 133
0
votes
1 answer

Tornado timeouts and server failured

I am working now on real-time game based on tornado, tornado-sockjs. There are a lot of different timeout strategies in our game application: TIMEOUT_GAME_IF_NOBODY, TIMEOUT_GAME_IF_SERVER_OFF. These timeouts has callbacks that can work with storage…
Rustem K
  • 1,212
  • 11
  • 27
0
votes
1 answer

Using chrome frame instead of SockJS

I'm creating web application using Go programming language. In my project I need to support IE>=8, Firefox >=13 Opera >=12 ... A part of the project rely on realtime push notification. Go doesn't have good support for Socket.IO or SockJS to…
Robert Zaremba
  • 8,081
  • 7
  • 47
  • 78
0
votes
1 answer

DNode implementation for websocket communication in node.js

I don't understand the way DNode uses websocket communication. Some say it uses socket.io others say sockjs. Which one is it? Or is it possible to choose? I'm trying to use DNode, but I also need access to the connections for (semi-)broadcasting in…
Kim
  • 57
  • 1
  • 7
0
votes
1 answer

IOError handling on Sockjs-Tornado

I develop instant messaging application based on sockjs-tornado chat sample. My code is asynchronous. Having this stack trace: ERROR:root:Exception in callback Traceback (most recent…
0
votes
1 answer

Tornado as Game engine and backend

I am going to build a simple monopoly game in realtime. Game constraints: 3-8 people in one game Realtime switching between players Scores and other stat Start pos and Finish pos Receiving answer from specific player and check it in realtime So,…
Rustem K
  • 1,212
  • 11
  • 27
0
votes
1 answer

tornado-sockjs, how to set session id from client?

I want to create realtime application and i want to send realtime updates only for specific users (for example my friends). I have list of friend ids and my own id on client side. As I understand, I need to set sockjs session with my own id when I…
Anderson
  • 573
  • 1
  • 4
  • 9
1 2 3
43
44