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

Supporting multiple private channels with sockjs

I'm trying to make an chat application that supports multiple instance of private conversation between two people. ( similar to facebook's messaging system ) I'm trying to use sockjs to do so, but I am having trouble creating a new instance of…
Eugene Choi
  • 113
  • 8
0
votes
1 answer

angularjs, sockjs, angular-sockjs injection not working

I'm trying to use angular with sockjs-client and cyclone, a component made by bendrucker exists: https://github.com/bendrucker/angular-sockjs. Newbie to all this technologies i'm stuck getting an injection problem when i tried to use the component…
Alejandro
  • 51
  • 6
0
votes
1 answer

No such method issue with websockets and spring 4 and tomcat 7

Hi im getting the following issue with websockets and spring 4 and tomcat 7. I deployed the application on tomcat and when i try to get the websocket to work i get the following error. Anyone got any ideas as to where my conflict is, i know its a…
user1555190
  • 2,803
  • 8
  • 47
  • 80
0
votes
2 answers

Titanium Appcelerator has no method createTCp

I'm trying to create a socket connection to SockJS server and following the example given here but Titanium keeps on giving me the error "has no method createTCP" This is the code I'm using var connectingSocket = Ti.Network.createTCP({ host:…
OneScrewLoose
  • 145
  • 1
  • 6
  • 22
0
votes
0 answers

SockJS websocket handshakes but then XHR calls for Meteor app

I recently enable Websockets on our HTTP server which proxies to a Meteor application that I'm running. I see it do the handshake (i.e. "Switching Protocols") but then all the logs in browser seem to indicate that SockJS is still communicating…
occasl
  • 5,303
  • 5
  • 56
  • 81
0
votes
1 answer

Sharing SockJS connection

I'm developing a Node.js back-end which communicates with some desktop clients via websockets, and the communication from the server side is initiated from a web front-end. Everything works ok since I am storing the SockJS Connection instances in an…
Aleksandar Stojadinovic
  • 4,851
  • 1
  • 34
  • 56
0
votes
1 answer

Spring 4 WebSockets + SockJS - websocket:handshake-interceptors never invoked

I am testing Spring 4's different WebSocket approaches. The most basic, works well, invoking the interceptor (I want to publish the HttpSession attributes):
codependent
  • 23,193
  • 31
  • 166
  • 308
0
votes
1 answer

user authentication with express and sockjs

On sockjs github page written - cookies cannot be used for user authentication. Where I can read about methods to authenticate user in sockjs, it desirable with example. I don't want use socket.io.
nikolai-s
  • 317
  • 1
  • 3
  • 9
0
votes
2 answers

how to solve a ReferenceError in node js (var not defined)

I'm new to javascript to I'm probably asking something easy. I'm trying to develop a project using SockJS, nodeJs and ssh2 module of nodeJs. I'm trying to send a message from Chrome using SockJS library's client side code (websockets) to the NodeJS…
ederollora
  • 1,165
  • 2
  • 11
  • 29
0
votes
1 answer

ActiveMQ - STOMP subscribe with selector fails

Client side setup to implement selector on a STOMP subscribe. var headers = {hello: 'worldtest'}; console.log(event.get('header').data.eventType); var connectCallback = function(frame) { stompClient.subscribe("/topic/receipt",…
user1523885
  • 101
  • 1
  • 7
0
votes
2 answers

Setting message size for spring sockjs websocket server

I have used spring sockjs server implementation for websockets. It supports messages upto 2kb but above that the websocket connection breaks -gives an 1006 error. If I reduce the message size, then it runs ok. I went through the docs as well as…
cpandey05
  • 1,241
  • 2
  • 17
  • 30
0
votes
1 answer

Nginx configuration example for sockJS-tornado

I need tornado-sockJS Nginx configuration i cant find any documentation on the web who can help me? not working tornado-nginx configurations with sockJS ..
omgbbqhax
  • 411
  • 5
  • 18
0
votes
1 answer

SockJS connected as websocket, but nothing going through

I came accross a problem while using SockJS on a specific access network. It think it is related to the way SockJS chooses the best transport protocol (websocket, long polling, ...) according to the state of the network. Using a web browser, my…
Vincent Hiribarren
  • 5,254
  • 2
  • 41
  • 65
0
votes
1 answer

Capture connection events of two socket servers

I know I am overthinking this... but the answer is just not clicking. I have two servers, one a TCP socket server and the other a SockJS server. I need to combine both of their connection events into one super event: async.parallel({ tcp: function…
srquinn
  • 10,134
  • 2
  • 48
  • 54
0
votes
1 answer

How to create sockjs (SockJS - WebSocket emulation) or Shoe standalone server (node.js)?

Does anyone know how to create sockjs-node (SockJS - WebSocket emulation) or Shoe standalone server? Is it possible to crate without http Server? Just need to exchange data with dnode, and static pages are not necessary. For instance, when I do on…
user1028880