Fail

Results 13 comments of Fail

Однозначно игрок находящийся на своей территории должен быть в безопасности. Игрок на территории противника должен проигрывать при столкновении. Иначе какой смысл в своей территории?

What happened? Errors?

you need to remove addslashes and send data as JSON > Четверг, 13 августа 2015, 17:07 -07:00 от TexxMedia [email protected]: > > Hi, > how i can change this great...

You can send the JSON data as String. Just use json-encode/json_decode method. http://php.net/manual/en/function.json-decode.php http://php.net/manual/en/function.json-encode.php

Hello! Yes, you have a mistake. when you send a message you need to use "action". Please use this construction: $socketio->send('localhost', 9090, 'message', 'Hello world!') I corrected the example in...

You can run socketio in DEBUG. For example: DEBUG=\* nodejs /path/to/jsscript.js What errors occur when sending a message?

You have a transport error. Do you install socket.io server correctly? $out = "GET $address&transport=$transport HTTP/1.1\r\n"; $out.= "Host: http://$host:$port\r\n"; $out.= "Upgrade: WebSocket\r\n"; $out.= "Connection: Upgrade\r\n"; $out.= "Sec-WebSocket-Key: $key\r\n"; $out.= "Sec-WebSocket-Version:...

Yes, exactly the same packages should come from the PHP script. Which version Socket.io do you use?

Yes, it's my mistake. Correct the string $result= fread($fd,1000); to $result= fread($fd,10000); on socket.io.php And please write that everything is OK ;)

Ok. this is my nodejs code: ``` const websocketport = 9092; //Our port var io = require('socket.io').listen(websocketport); // Web-socket io.sockets.on('connection', function (socket) { console.log("New User connected"); socket.on('message', function (msg) {...