Fix type of websocket event

You usually work with websockets like this:

```
var ws = new WebSocket();
ws.onmessage = function(event) {
    console.log(event.data);
}
```

Previously flow would error that `event.data` property is not defined.