About 2,190,000 results
Open links in new tab
  1. javascript - Simple example on how to use Websockets between …

    Nov 14, 2018 · Using websockets directly might be troublesome, it's advised you use a framework to abstract this layer, so they can easily fallback to other methods when not supported in the …

  2. Closing WebSocket correctly (HTML5, Javascript) - Stack Overflow

    145 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 …

  3. javascript - Sending websocket ping/pong frame from browser

    May 15, 2012 · An alternative JavaScript solution that sends an empty data frame, rather than a ping frame: In case of the WebSocket server initiative disconnects the ws link after a few …

  4. Creating a "Hello World" WebSocket example - Stack Overflow

    Apr 18, 2012 · 6 WebSockets are implemented with a protocol that involves handshake between client and server. I don't imagine they work very much like normal sockets. Read up on the …

  5. javascript - What browsers support HTML5 WebSocket API?

    Aug 10, 2009 · I am going to develop an instant messaging application that runs in the browser. What browsers support the WebSocket API?

  6. javascript - Sending messages with Websockets - Stack Overflow

    I have the following html/javascript code that uses websockets to communicate with a server. It seems like I can only send (message) only inside the onmessage () and onopen () functions. …

  7. javascript - How are Websockets implemented? - Stack Overflow

    Jan 12, 2016 · 47 How Websockets are implemented? webSockets are implemented as follows: Client makes HTTP request to server with "upgrade" header on the request If server agrees to …

  8. javascript - Getting the reason why websockets closed with close …

    Getting the reason why websockets closed with close code 1006 Asked 12 years, 3 months ago Modified 1 year, 10 months ago Viewed 536k times

  9. Send and receive binary data over web sockets in Javascript?

    Apr 23, 2011 · It is possible to send and receive binary data over web sockets in Javascript? Could I, for example, implement an SSH client using web sockets?

  10. javascript - WebSocket Connection timeout - Stack Overflow

    But the problem is handling timeout websockets right way - if i am trying to close nonconnected socket I receive warning in chrome : "WebSocket connection to 'ws://127.0.0.1:9010/timeout' …