SocketCluster v13.1.3 Release Notes
Release Date: 2018-05-13 // almost 6 years ago-
- 0️⃣ You can now pass an optional
authVerifyAlgorithms
array (of strings) to the main SocketCluster instance (used for JWT auth verification). If not specified, by default the algorithm will be the same for both JWT signing and verification (determined byauthAlgorithm
). The consequence of this change is that while you can only sign with one algorithm, the verification could accept multiple algorithms. - The SC server adds a
socket
property to theoptions
object which is passed to theverifyToken
method of theauthEngine
; this means that if a customauthEngine
is provided, it can use data from the socket itself (e.g. cookie or query string) to aid in performing the verification. - ➕ Added a
destroy
method on the server side socket to make it more consistent with the client side socket. Also added a matchingactive
(boolean) property which can be used to check if the socket was destroyed. - An error event will be emitted on the socket if the user tries to emit a reserved event on that socket.
- 📇 Renamed
SCSocket
toSCServerSocket
. - ⬆️ Bumped
sc-uws
version.
- 0️⃣ You can now pass an optional