Questions tagged [phpws]

phpws is WebSocket Server and Client library for PHP. Works with the latest HyBi specifications, as well the older Hixie #76 specification used by older Chrome versions and some Flash fallback solutions.

phpws is WebSocket Server and Client library for PHP. Works with the latest HyBi specifications, as well the older Hixie #76 specification used by older Chrome versions and some Flash fallback solutions.

This project was started to bring more interactive features to http://www.u2start.com/

Official Github: https://github.com/Devristo/phpws

5 questions
4
votes
1 answer

Trying to create a socket between servers with SocketIO and PHPws

I'm having a bit of an issue with websockets. So, I have a Rpi that provides me some data through a socketIO client in a pretty simple way. The following code shows how do I get to get this data:
SocketIO…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/node.js" class="post-tag grid--cell" title="show questions tagged 'node.js'" rel="tag">node.js</a> <a href="../../questions/tagged/apache" class="post-tag grid--cell" title="show questions tagged 'apache'" rel="tag">apache</a> <a href="../../questions/tagged/socket.io" class="post-tag grid--cell" title="show questions tagged 'socket.io'" rel="tag">socket.io</a> <a href="../../questions/tagged/phpwebsocket" class="post-tag grid--cell" title="show questions tagged 'phpwebsocket'" rel="tag">phpwebsocket</a> <a href="../../questions/tagged/phpws" class="post-tag grid--cell" title="show questions tagged 'phpws'" rel="tag">phpws</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Aug 29 '17 at 10:46">asked Aug 29 '17 at 10:46</time> <a href="../../users/3809991/tul1" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3809991.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="tul1" /> </a> <div class="s-user-card--info"> <a href="../../users/3809991/tul1" class="s-user-card--link">tul1</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">412</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="6 silver badge">6</li> <li class="s-award-bling s-award-bling__bronze" title="22 bronze badge">22</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-47250162"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/47250162/regarding-automatically-disconnection-from-socket-runnning-on-ec2-instance" class="question-hyperlink">Regarding automatically disconnection from socket runnning on ec2 instance</a></h3> <div class="excerpt">I am creating a php web application. It have socket feature for chat purpose. I set port 9999 as TCP port. I ran Socket on this port(Using private IP) and it run successfully. Then I created client script to connect to this socket. At my local…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/sockets" class="post-tag grid--cell" title="show questions tagged 'sockets'" rel="tag">sockets</a> <a href="../../questions/tagged/amazon-web-services" class="post-tag grid--cell" title="show questions tagged 'amazon-web-services'" rel="tag">amazon-web-services</a> <a href="../../questions/tagged/amazon-ec2" class="post-tag grid--cell" title="show questions tagged 'amazon-ec2'" rel="tag">amazon-ec2</a> <a href="../../questions/tagged/phpws" class="post-tag grid--cell" title="show questions tagged 'phpws'" rel="tag">phpws</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Nov 12 '17 at 14:50">asked Nov 12 '17 at 14:50</time> <a href="../../users/8927841/pradeep-bhardwaj" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/8927841.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Pradeep Bhardwaj" /> </a> <div class="s-user-card--info"> <a href="../../users/8927841/pradeep-bhardwaj" class="s-user-card--link">Pradeep Bhardwaj</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">21</li> <li class="s-award-bling s-award-bling__bronze" title="1 bronze badges">1</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-33643549"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/33643549/zend-log-writer-stream-is-interfering-shell-input" class="question-hyperlink">Zend\Log\Writer\Stream is interfering shell input</a></h3> <div class="excerpt">I'm using Zend Framework's logger to log events. $logger = new \Zend\Log\Logger(); $writer = new Zend\Log\Writer\Stream("/path/to/debug.log"); $logger->addWriter($writer); and log it with: $logger->notice('Testing'); Then I run the PHP in shell…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/ubuntu" class="post-tag grid--cell" title="show questions tagged 'ubuntu'" rel="tag">ubuntu</a> <a href="../../questions/tagged/logging" class="post-tag grid--cell" title="show questions tagged 'logging'" rel="tag">logging</a> <a href="../../questions/tagged/zend-framework" class="post-tag grid--cell" title="show questions tagged 'zend-framework'" rel="tag">zend-framework</a> <a href="../../questions/tagged/phpws" class="post-tag grid--cell" title="show questions tagged 'phpws'" rel="tag">phpws</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Nov 11 '15 at 02:58">asked Nov 11 '15 at 02:58</time> <a href="../../users/188331/raptor" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/188331.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Raptor" /> </a> <div class="s-user-card--info"> <a href="../../users/188331/raptor" class="s-user-card--link">Raptor</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">53,206</li> <li class="s-award-bling s-award-bling__gold" title="45 gold badges">45</li> <li class="s-award-bling s-award-bling__silver" title="230 silver badges">230</li> <li class="s-award-bling s-award-bling__bronze" title="366 bronze badges">366</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-40833089"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/40833089/why-phpws-onmessage-method-get-blocked-by-the-thread" class="question-hyperlink">Why phpws onMessage method get blocked by the thread?</a></h3> <div class="excerpt">This is phpws example where I'm trying multithreading: class Cli_TestHandler extends WebSocketUriHandler { public function onMessage(WebSocketTransportInterface $user, WebSocketMessageInterface $msg) { $dataIn =…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/pthreads" class="post-tag grid--cell" title="show questions tagged 'pthreads'" rel="tag">pthreads</a> <a href="../../questions/tagged/phpws" class="post-tag grid--cell" title="show questions tagged 'phpws'" rel="tag">phpws</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Nov 27 '16 at 19:37">asked Nov 27 '16 at 19:37</time> <a href="../../users/5760430/pogromca-motyli" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5760430.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Pogromca Motyli" /> </a> <div class="s-user-card--info"> <a href="../../users/5760430/pogromca-motyli" class="s-user-card--link">Pogromca Motyli</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">130</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="11 bronze badges">11</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-47239952"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/47239952/server-not-accepting-request-on-port-9999" class="question-hyperlink">Server not accepting request on port 9999</a></h3> <div class="excerpt">I am trying to deploy my socket[phpws library] on amazon EC2 instance. For this I deployed code and run socket. I have selected port 9999 for socket handshake, but it is not working. I tried to captured request on this server by command : sudo…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/linux" class="post-tag grid--cell" title="show questions tagged 'linux'" rel="tag">linux</a> <a href="../../questions/tagged/sockets" class="post-tag grid--cell" title="show questions tagged 'sockets'" rel="tag">sockets</a> <a href="../../questions/tagged/amazon-ec2" class="post-tag grid--cell" title="show questions tagged 'amazon-ec2'" rel="tag">amazon-ec2</a> <a href="../../questions/tagged/phpwebsocket" class="post-tag grid--cell" title="show questions tagged 'phpwebsocket'" rel="tag">phpwebsocket</a> <a href="../../questions/tagged/phpws" class="post-tag grid--cell" title="show questions tagged 'phpws'" rel="tag">phpws</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Nov 11 '17 at 16:07">asked Nov 11 '17 at 16:07</time> <a href="../../users/3049483/pradeep" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3049483.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Pradeep" /> </a> <div class="s-user-card--info"> <a href="../../users/3049483/pradeep" class="s-user-card--link">Pradeep</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">46</li> <li class="s-award-bling s-award-bling__bronze" title="5 bronze badges">5</li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>