WebSocket: fix function declarations (no more warnings in strict mode)