4ib3r / StompBrokerJS

NodeJS StompBroker
MIT License
35 stars 28 forks source link

Validate headers during connect #19

Open MeiyappanKannappa opened 5 years ago

MeiyappanKannappa commented 5 years ago

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.

ypetya commented 5 years ago

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

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