Abstract
The WebSocket protocol (www.websocket.org) allows a two-way real-time conversation between the web server and client, through a standardized connection to allow both the server and the client to send data at any time. The client sends a request to the server to switch from an HTTP protocol to a WebSocket protocol; and if the server can host the WebSocket protocol, the HTTP connection is replaced with a WebSocket connection, but using the same port as HTTP.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2021 Neil Cameron
About this chapter
Cite this chapter
Cameron, N. (2021). WebSocket. In: Electronics Projects with the ESP8266 and ESP32. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6336-5_9
Download citation
DOI: https://doi.org/10.1007/978-1-4842-6336-5_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-6335-8
Online ISBN: 978-1-4842-6336-5
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)