StompBrokerJS icon indicating copy to clipboard operation
StompBrokerJS copied to clipboard

Validate headers during connect

Open MeiyappanKannappa opened this issue 6 years ago • 1 comments

Hi i am trying to validate a client using headers in the 'connected' event. Could you please let me know to avoid the connection or stop cliebt connecting if validation fails.

MeiyappanKannappa avatar Oct 29 '18 18:10 MeiyappanKannappa

Try to return false from the server's this.onClientConnected method! ;)

See https://github.com/4ib3r/StompBrokerJS/blob/master/lib/stomp.js#L57

ypetya avatar Oct 30 '18 17:10 ypetya