WebSocket: replace event loop with new Monkey API

Signed-off-by: Eduardo Silva <eduardo@monkey.io>