Closed dsrees closed 3 years ago
stateChangeCallbacks
refs
phoenix.js
socket.off(ref:)
onMessage
onOpen
onError
onClose
sendBuffer
phx_joins
Socket
stateChangeCallbacks
to includerefs
to match the behavior of thephoenix.js
client.socket.off(ref:)
function which allows the client to remove individualonMessage
,onOpen
,onError
, andonClose
hooks by a ref value.sendBuffer
to prevent duplicatephx_joins
from being sent when theSocket
is opened.