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

as sockjs brukva use async server and clients to identify and respond indibidual

I am building a realtime web application. I want just to connect the client, identify and send a different message to each from the server, using sockjs What we achieved so far is connect from the browser and send a message that I answered the same…
user987055
  • 1,039
  • 4
  • 14
  • 25
0
votes
4 answers

Can two different browsers on the same machine connect to a server both using websocket?

I have two different browsers (Chrome and Safari) on the same machine (i.e. same IP), and wonder if it is possible to connect them to the same server both using websocket? I've tried. Chrome connects fine, but Safari throws an error,…
MLister
  • 10,022
  • 18
  • 64
  • 92
0
votes
1 answer

Linking with cowboy process which handles the websocket connection (cowboy, erlang)

I'm developing an erlang app which use both cowboy and sockjs and I wonder if is it possible to link with the cowboy process which handles the websocket connection? Right now process with gen_server behaviour is associated with each websocet…
Def_NulL
  • 87
  • 4
0
votes
1 answer

How to make connection via SockJS (websocket) with NodeJS durable/persistent?

What is best solution to manage connection in NodeJS connected via SockJS (websocket) to be durable(do not disconnect) for some time during user reloads the page? Can I do that with session?
theZiki
  • 939
  • 1
  • 8
  • 14
-1
votes
1 answer

SockJS-Erlang and Yaws Webserver

Thanks in advance but can anyone provide some guidance how I would use sockjs-erlang together with the Yaws Web Server. I have found some material on sockjs and cowboy but none on Yaws. Thanks
user557513
  • 117
  • 1
  • 5
1 2 3
43
44