Skip to content

v6.0.1

Compare
Choose a tag to compare
@jondubois jondubois released this 02 Jul 20:49
· 506 commits to master since this release

Added new events on the SCServer object which refer to a socket. This allows developers to listen to certain socket events from a central place. These new events are:

  • subscription
  • unsubscription
  • authentication
  • deauthentication

Also, fixed the authenticate and deauthenticate events on the server-side socket (SCSocket) object - Before, these events were not always being triggered correctly. These events were not officially documented on the website until now (unlike the client-side socket's authenticate and deauthenticate events).

Breaking change

The handler to the badSocketAuthToken event (which is emitted on SCServer) used to accept a single status object argument. Now it accepts two arguments; the first of which is the socket object and the second of which is the status object. Note that the status object no longer has a socket property.