1
首先,對不起我的英語不好。Deepstream不工作
我想在最後兩天的深水運行。服務器啓動但我無法從瀏覽器連接。
INFO | logger ready
INFO | deepstream version: 1.1.0
INFO | messageConnector ready
INFO | storage ready
INFO | cache ready
INFO | authenticationHandler ready: none
INFO | permissionHandler ready: none
INFO | Using uws websocket server
CLUSTER_JOIN | it9p2a8m-z77t85n9bk04
INFO | Listening for tcp connections on 127.0.0.1:6021
INFO | Listening for browser connections on 127.0.0.1:6020
INFO | Deepstream started
我的index.html是這樣的:
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.rawgit.com/deepstreamIO/deepstream.io-client-js/master/dist/deepstream.min.js"></script>
</head>
<body>
<input type="text" />
<script type="text/javascript">
var deepstream = require('deepstream.io-client-js');
const client = deepstream('127.0.0.1:6020').login();
})
</script>
</body>
</html>
無法通過127.0.0.1:6021與瀏覽器連接到服務器。瀏覽器只搜索...
有沒有簡單的例子? DS-demo-pong是我深入研究的唯一例子。
感謝您的幫助和抱歉,我的英語不好:-(
首先,感謝您的快速響應。有沒有改變,但現在: 'INCOMING_CONNECTION |從127.0.0.1:32978經由tcp INCOMING_CONNECTION |從127.0.0.1:32982通過tcp CLIENT_DISCONNECTED | null CLIENT_DISCONNECTED | null CONNECTION_AUTHENTICATION_TIMEOUT |連接未在預期時間內成功驗證「 刪除」const client = deepstream('127.0.0.1:6020')。login();「 我得到了危機;-) FeathersJS,Meteor,Angular我可以測試和運行的所有東西,但最讓我感興趣的是不會去... – mekroth
你是通過6021還是6020運行它? 6021是純瀏覽器不支持的TCP。 – yasserf