This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How I want my websocket PHP extension to work: | |
(Something like this) | |
<?php | |
set_time_limit(0); //maybe do this inside extension, if possible? | |
$ws = new WebSocket("3333"); | |
$ws->set_receive_callback(function($state, $msg) { | |
WebSocket::sendText($state->sockfd, $msg->text); | |
}); |
NewerOlder