session1getBasicRemotesendObjectlist;
This line of code is using the getBasicRemote() method to obtain the RemoteEndpoint.Basic object of the current WebSocket session. Then, the sendObject() method is called on the RemoteEndpoint.Basic object, passing in the list object as the data to be sent.
Assuming list is a valid object that can be serialized and sent over the WebSocket connection, this line of code sends the list object to the client connected to the WebSocket session.
原文地址: https://www.cveoy.top/t/topic/iUQN 著作权归作者所有。请勿转载和采集!