Web socket implementation.