Home>

I want to communicate with a server using Express and Socket.io with a client using Unity's BESTHTTP plugin, but it doesn't work because of the response.
The server uses the official Socket.io chat server program.Hereis.
When I try to connect to URL: 3000/socket.io /, I get 200 OK, but the data returned is different from the server running the Socket.io formula.
Official server Response

96: 0 {\ "sid \": \ "TXCbChDASVpjHHBBAAZN \", \ "upgrades \": [\ "websocket \"], \ "pingInterval \": 25000, \ "pingTimeout \": 5000} 2:40


Response on my server

"0 {\" sid \ ": \" cfDqUVhY31l5bhqXAAAF \ ", \" upgrades \ ": [\" websocket \ "], \" pingInterval \ ": 25000, \" pingTimeout \ ": 5000}"


In this way, the data "96: * 2:40" is attached before and after, and BestHTTP seems to be able to support only the former Response, so communication is not possible.
The versions of express and socket.io are officially matched, but is there an environmental factor in making such a difference?
If i run Socket.io-client instead of BestHTTP on the client side, you can communicate, so there should be no problem with the settings.