View Source Nex.Handler behaviour (Nex v0.1.0)

Handler behaviour.

Messages received to the Nex.Socket handler are routed to different modules that implement this behaviour.

Link to this section Summary

Callbacks

Callback for handling message items. Must return a WebSock.handle_result/0.

Link to this section Callbacks

@callback handle_item(term(), Nex.Socket.t()) :: WebSock.handle_result()

Callback for handling message items. Must return a WebSock.handle_result/0.