A WebSocket is a persistent bi-directional communication channel between a client (e.g. a browser) and a backend service . In contrast with HTTP request/response connections, websockets can transport any number of protocols and provide server-to-client message delivery without polling.