WebSocket is a computer communications protocol, providing full-duplex communication channels over a single TCP connection. It enables interaction between a web browser (or other client application) and a web server with lower overheads, facilitating real-time data transfer from and to the server.