v0.15.0
版本发布时间: 2015-07-27 20:49:04
phoenixframework/phoenix最新发布版本:v1.5.3(2020-06-26 19:06:09)
See these 0.14.x
to 0.15.0
upgrade instructions to bring your existing apps up to speed.
- Enhancements
- [Socket] Introduce
Phoenix.Socket
behaviour that allows socket authentication, termination, and default channel socket assigns - [PubSub] Use ETS dispatch table for increased broadcast performance
- [Channel] Use event intercept for increased broadcast performance
- [Socket] Introduce
- Backward incompatible changes
- [Router] channel routes are now defined on a socket handler module instead of the Router
- [Router]
socket
mounts have been moved from the Router to the Endpoint - [Channel]
handle_out
callbacks now require explicit event intercept for callback to be invoked, withPhoenix.Channel.intercept/1
- [Transports] WebSocket and LongPoll transport configuration has been moved from mix config to the UserSocket
- JavaScript client backwards incompatible changes
-
Phoenix.LongPoller
has been renamed toPhoenix.LongPoll
- A new client version is required to accommodate server changes
-