Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サーバー側で接続を完全に開いたままにして、データをJavaScriptに継続的にストリーミングする方法を知っています。しかし、同じTCPを使用してブラウザからサーバーにデータを送信する方法がわかりません。したがって、3ウェイハンドシェイクはなく、2tcpパケットのみです。私はそれが可能であることを知っていますが、それを行う方法はありません:xmlhttprequestを使用しますか?またはスクリプトタグajax?やり方を教えてくれませんか。
どうもありがとうございます
WebSocketsを使用するのはどうですか。