使用此代碼發送更多的信息: Java服務器端: ...
out = new PrintWriter(this.client.getOutputStream(), true);
...
public void sendMsg(String msg) {
out.println(msg);
//out.flush(); // we don't flush manually b
我試圖讓一個nodejs套接字服務器運行,這將允許運行使用自定義協議進行通信的Flash遊戲的兩個客戶端之間的遠程通信。由於Flash安全限制,套接字服務器似乎必須與服務器Flash遊戲的Web服務器在同一主機上運行。我一直在不斷地得到以下錯誤: The service crashed at startup or is listening to the wrong port. It failed