Phoenix.js reconnect params

There is actually a simple solution to this problem, as Chris McCord pointed out in the mailing list:

let socket = new Socket(“/….”, {params: {…}})
socket.onOpen(() => {
  socket.params = {…} // next rejoin will use new params
})
4 Likes