WebSocket


Reading time: less than 1 minute
  • A WebSocket is a bi-directional, message-based data transport that can be used in the browser.
  • It is a very simple protocol, basically a thin wrapper over TCP. Can be implemented in one day.
  • There is not much overhead compared to other protocols, the message framing is very small.

The WebSocket protocol is described by RFC 6455.

URLs

The URL for a WebSocket server can be specified as follows.

  • wss://example.com/ws for connections over TLS
  • ws://example.com/ws for non-TLS connections

The following pages link here

Citation

If you find this work useful, please cite it as:
@article{yaltirakli,
  title   = "WebSocket",
  author  = "Yaltirakli, Gokberk",
  journal = "gkbrk.com",
  year    = "2024",
  url     = "https://www.gkbrk.com/websocket"
}
Not using BibTeX? Click here for more citation styles.
IEEE Citation
Gokberk Yaltirakli, "WebSocket", November, 2024. [Online]. Available: https://www.gkbrk.com/websocket. [Accessed Nov. 12, 2024].
APA Style
Yaltirakli, G. (2024, November 12). WebSocket. https://www.gkbrk.com/websocket
Bluebook Style
Gokberk Yaltirakli, WebSocket, GKBRK.COM (Nov. 12, 2024), https://www.gkbrk.com/websocket

Comments

© 2024 Gokberk Yaltirakli