Looks like it's easy to add custom HTTP headers to your websocket client with any HTTP header client which supports this, but I can't find how to do it with the JSON API.   Yet, it seems that there should be support these headers in the spe...
Are there any tutorials or guides showing how to write myself a simple websockets server in PHP? I have tried looking for it on google but I didn't find many. I found phpwebsockets but it is outdated now and doesn't support newest protocol....
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()...
We are developing a web application that will run only on modern browsers (IE10+) for different reasons.  One of the features we implemented is Socket.io 1.x. However, by default the Socket.io client tries to support older browsers, so it starts a...
I wrote a code for broadcasting a message to all users  :   The Used code : (brief)  // websocket and http servers var webSocketServer = require('websocket').server;  ... ... var clients = [ ];  var server = http.createServer(function(reque...
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 want to check with JavaScript if the user has already opened my website in another tab in their browser.  It seems I cannot do that with pagevisibility...  The only way I see is to use WebSocket based on a session cookie, and check if the client...
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...
I have PHP on the server side, and HTML and javascript on the client side.  I am making an app where a stakeholder types a message that is broadcasted to multiple recievers of a group in real time.  I did some research on google and I understand I ne...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.