Fixing implementation of remote device publishing via WebSocket.