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.
正如标题所说:我正在尝试设置 websocket 连接,例如:
var socket = new WebSocket('ws://localhost:8080/admin');
/admin将返回会话列表。然后对于每个会话,我需要发送更多数据,但/admin/${sessionX}
/admin
/admin/${sessionX}
如果不建立新的 ws 连接,这是否可能?websocket.send() fun 并没有解释它是可能的。
谢谢