Fix WebSocketLogger

Fixes #384.