Skip to main content

WebSocket

  • Chapter
  • First Online:
Electronics Projects with the ESP8266 and ESP32
  • 3462 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Neil Cameron

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics