1) Standard handler:
Client sends requests -> server answers with response.
Websocket handler:
Client connects to server and they stay connected for as long as needed.
There is no Handle event in WebSocket handlers.
2)
ok thank you, so if i call a js function from the server i dont need to run ws.flush right?
No. It depends on what triggered the event, where the relevant call is made.
If the event was triggered by the client then the pipe will be flushed automatically at the end of the event. If it is a server event (such as Timer_Tick) then you need to call ws.Flush yourself.
Don't think about it too much. There is no harm in calling ws.Flush even if it is not needed. This is different than waiting for Future.Value incorrectly. In the later case you are pausing the connection until the round trip is completed.