简体   繁体   中英

Thruway WebSocket connection on localhost

Following the instructions from https://github.com/voryx/Thruway I am trying to set up a websocket server on localhost (Windows) which will only give me WebSocket connection to 'ws://127.0.0.1:9090/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

I started the server via > php vendor/voryx/thruway/Examples/SimpleClient.php which gives me the following console output:

2016-11-19T18:58:56.4982780 notice [Thruway\\Peer\\Client 308] Changing PHP precision from 14 to 16 2016-11-19T18:58:56.5007740 info [Thruway\\Peer\\Client 308] New client created 2016-11-19T18:58:56.5016600 info [Thruway\\Transport\\PawlTransportProvider 308] Starting Transport

on the client side I am using the recommended example from https://github.com/crossbario/autobahn-js . Which should work - I could successfully connect to the testserver ws://demo.thruway.ws:9090.

Tested in latest Chrome on Windows 10 php7.

Any help or hints would be highly appreciated.

我不确定这只是一个错字,但示例路由器是SimpleWsRouter.php而不是SimpleClient.php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM