防止套接字io在连接上发送默认消息

时间:2019-02-27 17:24:14

标签: websocket socket.io

每次我连接到套接字io服务器时,它都会向我发送两条我不想要的消息,实际上,我无法收到它们。我正在谈论的消息是:

In file included from main.cpp:1:
main.cpp: In instantiation of ‘constexpr std::array<AT, DIM> zero_array() [with AT = double; auto DIM = 10]’:
main.cpp:30:42:   required from here
/usr/include/c++/8.2.1/array:94:12: note: ‘struct std::array<double, 10>’ has no user-provided default constructor
     struct array
            ^~~~~
/usr/include/c++/8.2.1/array:110:56: note: and the implicitly-defined constructor does not initialize ‘double std::array<double, 10>::_M_elems [10]’
       typename _AT_Type::_Type                         _M_elems;

这似乎是服务器配置,但我根本不希望客户端收到该消息,我该怎么办?

还有一件事,json之前的数字是多少?我的意思是,我发送的每封邮件中都有号码

0 个答案:

没有答案