How to disable debug messages on sockjs- STOMP

后端 未结 2 1779
予麋鹿
予麋鹿 2021-01-31 07:42

I have the follow situation:

 var options = {
        protocols_whitelist : [ \"websocket\", \"xhr-streaming\", \"xdr-streaming\", \"xhr-polling\", \"xdr-polling         


        
相关标签:
2条回答
  • 2021-01-31 07:59

    I tried JR's answer but started receiving errors (was using redux sagas) - changing debug to an empty function worked ...

    stompClient.debug = () => {};
    
    0 讨论(0)
  • 2021-01-31 08:00

    Ok I found a solution.

    I added this code:

    stompClient.debug = null
    

    In this way, the debug function is disabled.

    0 讨论(0)
提交回复
热议问题