JavaScript edit

WebSockets

Introduction

WebSocket is protocol, which enables two-way communication between a client and server:

The goal WebSocket is to provide a mechanism for browser-based applications that need two-way communication with servers that does not rely on opening multiple HTTP connections. (RFC 6455)

WebSocket works over HTTP protocol.

Syntax

Parameters

ParameterDetails
urlThe server url supporting this web socket connection.
dataThe content to send to the host.
messageThe message received from the host.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Table Of Contents
17 Map
18 Set
28 Date
31 AJAX
42 JSON
54 WebSockets
104 Tilde
107 Events
  ↑ ↓ to navigate     ↵ to select     Esc to close