Skip to content

Commit bf7f8f5

Browse files
committed
2 parents eda8304 + e88a2fa commit bf7f8f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ public class MyWebSocketServer: WebSocketServer {
2323
}
2424

2525
public void OnMessage(WebSocketMessage message) {
26-
// Here, message.connection gives you the connection that send the message.
26+
// (WebSocketConnection)message.connection gives you the connection that send the message.
27+
// (string)message.id gives you a unique ID for the message.
2728
// (string)message.data gives you the message content.
29+
Debug.Log(message.connection.id);
30+
Debug.Log(message.id);
2831
Debug.Log(message.data);
2932
}
3033

0 commit comments

Comments
 (0)