Difference between Phoenix JS Socket and WebSocket API?

In addition to what Juan said, the websocket transport provides a number of features on top of websockets, such as:

  • heartbeats
  • connection recovery
  • request/response messaging
  • multiplexed channels of communication over single connection