Online chat based on web sockets