phoenixframework / websock

A specification for Elixir apps to service WebSocket connections
MIT License
75 stars 5 forks source link

Add optional return value to facilitate setting close codes #6

Closed mtrudel closed 1 year ago

mtrudel commented 1 year ago

Implements the contract updates described in phoenixframework/websock_adapter#2.

Allows Websock callbacks to return {:stop, reason, code, state} or {:stop, reason, {code, detail}, state}.