连接到服务器时socketIO客户端抛出错误

时间:2018-09-04 08:33:07

标签: python node.js socket.io

我已经编写了一个Python程序来使用socketIO_client连接到服务器

我正在使用python 2.7

   @Mappings({
    @Mapping(source = "myField", target = "myOtherField")
})
NiceModel toLoggableEntity(RequestModel1 request);

  @Mappings({
    @Mapping(source = "myField2", target = "myOtherField")
})
NiceModel toLoggableEntity(RequestModel2 request);

//so that I can pass Object from the interceptor without having 
//to figure out which request model to cast it to  
NiceModel toLoggableEntity(Object request);

但是它抛出了这个 Error

这是我在node.js上的服务器代码

from socketIO_client import SocketIO
myHost = 'localhost'
myPort = 8080
mySocket = SocketIO(myHost, myPort)

当我运行python代码时,服务器显示一个新的连接,但是python程序显示了错误(上面链接)

我该如何解决?

0 个答案:

没有答案