Websocket is different from regular socket
WebSocket might have generated more buzz than it deserves. Websockets are not nearly as versatile as regular sockets.
Reuglar sockets can support all transport protocols (e.g. TCP, UDP, ...). WebSocket uses an independent TCP-based protocol. To use WebSocket, both the client (a brower) and the server needs to support websockets. All popular web servers probably already support WebSocket by now, but there are few other servers support websockets. For example, each network camera is a web server, but probably none supports WebSocket right now.