ratchet

An Issue with connecting: SSL + WebSocket(socketo.me) + Nginx

◇◆丶佛笑我妖孽 提交于 2019-11-30 09:43:07
问题 Followed this link to configure Nginx click here Tried to connect WebSocket(socketo.me) through HTTPS, didn't succeed gave the error as WebSocket opening handshake timed out As my hosting server's ngnix (version: 1.13.8) is configured to work in reverse proxy mode in the front-end. Here is the configuration of the Nginx http { map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream websocket { server xx.xxx.xxx.x:8282; #External IP address } server { location / { proxy

PHP Fatal error: Class 'MyApp\\Chat' not found in /MyApp/chat-server.php

余生长醉 提交于 2019-11-30 06:50:51
I am trying to run the Ratchet application demo but I can't execute the file This is my file structure /var/www/src/MyApp/ /var/www/src/MyApp/chat.php /var/www/src/MyApp/chat-server.php <?php use Ratchet\Server\IoServer; use MyApp\Chat; #require "chat.php"; require 'vendor/autoload.php'; $server = IoServer::factory( new Chat(), 8080 ); $server->run(); /var/www/src/MyApp/composer.json { "autoload": { "psr-0": { "MyApp": "src" } }, "require": { "cboden/Ratchet": "0.3.*" } } Vendor Folder is exist in this location /var/www/src/MyApp/vendor/ Whenever I am executing the chat-server file in terminal

Ratchet + nginx + SSL/secure websocket

梦想的初衷 提交于 2019-11-29 21:04:10
I've been trying to run Ratchet.io over SSL (this problem: php ratchet websocket SSL connect? ). My webserver is running at myhost.mobi, and I have created a separate virtual host for websocket service "wws.myhost.mobi". My web socket: $webSock = new React\Socket\Server($loop); $webSock->listen(8080, '0.0.0.0'); $webServer = new Ratchet\Server\IoServer( new Ratchet\Http\HttpServer( new Ratchet\WebSocket\WsServer( new Ratchet\Wamp\WampServer( $pusher ) ) ), $webSock ); My nginx config (I'm on nginx 1.5.8): upstream websocketserver { server localhost:8080; } server { server_name wss.myapp.mobi;

1006 Error code in IBM Watson speech-to-text API

假如想象 提交于 2019-11-29 17:26:10
I'm using Ratchet to connect to IBM Watson websockets, and it always seems to work fine for smaller files (I've tested up to a 66-minute 23 MB mp3 file), but it always fails for larger files (such as 2-hour 56 MB mp3). This is my log: [2019-03-17 21:43:23] local.DEBUG: \Ratchet\Client\connect bf4e38983775f6e53b392666138b5a3a50e9c9c8 [2019-03-17 21:43:24] local.DEBUG: startWatsonStream options = {"content-type":"audio\/mpeg","timestamps":true,"speaker_labels":true,"smart_formatting":true,"inactivity_timeout":-1,"interim_results":false,"max_alternatives":1,"word_confidence":false,"action":"start

An Issue with an AWS EC2 instance WebSocket connection failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT

做~自己de王妃 提交于 2019-11-29 17:20:19
As I tried to run the chat app from localhost connected to MySQL database which had been coded with PHP via WebSocket it was successful. Also when I tried to run from the PuTTY terminal logged into SSH credentials, it was displaying as Server Started with the port# 8080 ubuntu@ec3-193-123-96:/home/admin/web/ec3-193-123-96.eu-central-1.compute.amazonaws.com/public_html/application/libraries/server$ php websocket_server.php PHP Fatal error: Uncaught React\Socket\ConnectionException: Could not bind to tcp://0.0.0.0:8080: Address already in use in /home/admin/web/ec3-193-123-96.eu-central-1

An Issue with connecting: SSL + WebSocket(socketo.me) + Nginx

风流意气都作罢 提交于 2019-11-29 16:55:11
Followed this link to configure Nginx click here Tried to connect WebSocket(socketo.me) through HTTPS, didn't succeed gave the error as WebSocket opening handshake timed out As my hosting server's ngnix (version: 1.13.8) is configured to work in reverse proxy mode in the front-end. Here is the configuration of the Nginx http { map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream websocket { server xx.xxx.xxx.x:8282; #External IP address } server { location / { proxy_pass http://xx.xxx.xxx.x:8080; #External IP address proxy_http_version 1.1; proxy_set_header Upgrade

how to get the connection object of a specific user?

假如想象 提交于 2019-11-28 23:57:39
I am working in a real time Symfony app using Ratchet library, in this app I need to send some data to a specific user so the logic solution was to use the SessionProvider that will attach a Symfony2 Session object to each incoming Connection object. As the documentation states I have setup a non-native session handler to store my sessions i.e. in a database via PDO. and that work fine for the moment but I need to get the Connection object of a specific user to send him some data so in other way I need to find the connection object that reference to this user and I can't find a way to do it ?

Ratchet + nginx + SSL/secure websocket

余生颓废 提交于 2019-11-28 17:13:40
问题 I've been trying to run Ratchet.io over SSL (this problem: php ratchet websocket SSL connect?). My webserver is running at myhost.mobi, and I have created a separate virtual host for websocket service "wws.myhost.mobi". My web socket: $webSock = new React\Socket\Server($loop); $webSock->listen(8080, '0.0.0.0'); $webServer = new Ratchet\Server\IoServer( new Ratchet\Http\HttpServer( new Ratchet\WebSocket\WsServer( new Ratchet\Wamp\WampServer( $pusher ) ) ), $webSock ); My nginx config (I'm on

An Issue with an AWS EC2 instance WebSocket connection failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT

…衆ロ難τιáo~ 提交于 2019-11-28 11:09:40
问题 As I tried to run the chat app from localhost connected to MySQL database which had been coded with PHP via WebSocket it was successful. Also when I tried to run from the PuTTY terminal logged into SSH credentials, it was displaying as Server Started with the port# 8080 ubuntu@ec3-193-123-96:/home/admin/web/ec3-193-123-96.eu-central-1.compute.amazonaws.com/public_html/application/libraries/server$ php websocket_server.php PHP Fatal error: Uncaught React\Socket\ConnectionException: Could not

how to get the connection object of a specific user?

五迷三道 提交于 2019-11-27 15:08:06
问题 I am working in a real time Symfony app using Ratchet library, in this app I need to send some data to a specific user so the logic solution was to use the SessionProvider that will attach a Symfony2 Session object to each incoming Connection object. As the documentation states I have setup a non-native session handler to store my sessions i.e. in a database via PDO. and that work fine for the moment but I need to get the Connection object of a specific user to send him some data so in other