cosmetic: websocket: some cleanups