当前位置:网站首页>How to disable debug messages on sockjs stomp - how to disable debug messages on sockjs Stomp
How to disable debug messages on sockjs stomp - how to disable debug messages on sockjs Stomp
2022-07-04 11:38:00 【Rich in starch】
problem :
I have the follow situation: I have the following conditions :
var options = { protocols_whitelist : [ "websocket", "xhr-streaming", "xdr-streaming", "xhr-polling", "xdr-polling", "iframe-htmlfile", "iframe-eventsource", "iframe-xhr-polling" ], debug : false }; var socket = new SockJS("/mmyurl/",undefined,options); var stompClient = Stomp.over(socket); stompClient.connect({ company : "XXXXX" }, function(frame) { stompClient.subscribe('/topic/mytopic', function(message){ var myitem = JSON.parse(message.body); });
all works fine, the problem is that on the javascript console is full of debug messages like this: Everything is all right , The problem is javascript The console is full of such debugging messages :
<<< MESSAGEcontent-type:application/json;charset=UTF-8subscription:sub-1message-id:o6g660dt-113destination:/topic/mytopiccontent-length:411
And I want to disable the messages. I want to disable these messages .
I tried to change some option and also tried to register simply: I tried to change some options , Also try to simply register :
var socket = new SockJS("/mmyurl/");
but it doesn't work. But it doesn't work .
Is there a way to disable the debug messages? Is there any way to disable debugging messages ?
Any help is appreciated To express appreciation for any help
Solution :
Reference resources : https://stackoom.com/en/question/1jlKI边栏推荐
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 12
- Common tips
- IO stream ----- open
- Heartbeat报错 attempted replay attack
- Serialization oriented - pickle library, JSON Library
- Four sorts: bubble, select, insert, count
- How do std:: function and function pointer assign values to each other
- os. Path built-in module
- Dos and path
- Review of week 278 of leetcode II
猜你喜欢
Serialization oriented - pickle library, JSON Library
Foreach (system.out:: println) usage
Take advantage of the world's sleeping gap to improve and surpass yourself -- get up early
QQ group collection
2018 meisai modeling summary +latex standard meisai template sharing
Ultimate bug finding method - two points
Games101 Lesson 8 shading 2 Notes
Fundamentals of software testing
DVC use case (VI): Data Registry
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 20
随机推荐
array_ The contains() function uses
Alibaba cloud server connection intranet operation
Review of week 278 of leetcode II
C language compilation process
Elevator dispatching (pairing project) ④
Capl: timer event
2021-11-02
Simple understanding of seesion, cookies, tokens
IO stream ----- open
Using terminal connection in different modes of virtual machine
Solaris 10 network services
Supercomputing simulation research has determined a safe and effective carbon capture and storage route
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 13
Notes on writing test points in mind mapping
Some tips on learning database
Elevator dispatching (pairing project) ③
Sys module
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
C language memory layout
R built in data set