add nack support copied from xFragger/stomp-js