- 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
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", December, 2024. [Online]. Available: https://www.gkbrk.com/websocket. [Accessed Dec. 27, 2024].
APA Style Yaltirakli, G. (2024, December 27). WebSocket. https://www.gkbrk.com/websocket
Bluebook Style Gokberk Yaltirakli, WebSocket, GKBRK.COM (Dec. 27, 2024), https://www.gkbrk.com/websocket