I'm working with socket.io and node.js and until now it seems pretty good, but I don't know how to send a message from the server to an specific client, something like this:  client.send(message, receiverSessionId)   But neither the .send()...
I am playing around with HTML5 WebSockets. I was wondering, how do I close the connection gracefully? Like, what happens if user refreshes the page, or just closes the browser?  There is a weird behavior when a user just refresh the page without ca...
I keep reading about ping/pong messages in websockets to keep the connection alive, but I'm not sure what they are.  Is it a distinct frame type? (I don't see any methods on a javascript WebSocket object in chrome related to ping-pong).  Or...
I just read this post, and I do understand what the difference is. But still in my head I have the question. Can/Should I use it in the same App/Website? Say I want the AngularJs to fetch content and update my page, connecting to a REST api and all o...
My error shows up in the console of my browser:   "WebSocket connection to 'ws://localhost:32768/DspClusterWebServices/myHandler' failed: Unexpected response code: 200"  I am using Spring Websockets 4.1.5 and Tomcat 8.0.18. My WebSock...
I am stucked with Firefox. I could not make Websocket work on it. I use Tornado Websocket and I initialized it by code below:  app = Application([(r'/mypath/ws', WSHandler)]) http_server = HTTPServer(app, ssl_options={                 "ce...
I'm using some client-side JavaScript code to pull a lot of JSON data from a webserver via an HTTP GET. The amount of data can be big, say 50 MB. This is on a LAN so it's not much of a problem, but it still takes ten seconds or so.  To make m...
I'm just starting to familiarize with AngularJS, but I would like to build a web app that has a view that gets auto-upated in real-time (no refresh) for the user when something changes in the server-side database.  Can AngularJS handle this (most...
I am using websockify to display images from a python server to a HTML5 canvas.  I think that I have manage to successfully send images from my python server but I am not able to display the images to my canvas.  I think the problem has to do with th...
I'm looking for a way to integrate Node.js + Socket.io + Apache in the following way: I want apache to continue serving HTML / JS files. I want node.js to listen for connection on port 8080. Something like this:  var util = require("util"...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.