diff --git a/lib/WetSock/SocketClient.js b/lib/WetSock/SocketClient.js index 8638dfd..985df24 100644 --- a/lib/WetSock/SocketClient.js +++ b/lib/WetSock/SocketClient.js @@ -24,4 +24,12 @@ export default class SocketClient { this.#ws.send(message); } + + /** + * Gets the unique client id. + * @returns {string} - the unique client id + */ + id() { + return this.#id; + } }