Define temporary variable as a local variable
Define testing command with its expected notification type
Define custom event "connected" to send the subscriber ID to the client socket
Allow to modify envelope parameters
Store subscriber ID and use it to send notifications for testing
Return the new socket to the next callback correctly
Fix typo
Now the connection sends the message (envelope) itself to its listeners
utils.createClientSocket now returns a client instead of a raw socket
Use more suitable name to create clients