diff --git a/lib/frontend/src/api.js b/lib/frontend/src/api.js index a033869b..cbf362cc 100644 --- a/lib/frontend/src/api.js +++ b/lib/frontend/src/api.js @@ -7,11 +7,11 @@ const socket = { pool: {}, ws: null, + /** + * Connect to the server via websocket. + * @param {string|null} url - This is just work for the first connect. + */ connect(url) { - /* - Connect to the server via websocket. - @param url {String|null} This is just work for the first connect. - */ if (!socket.url) { socket.url = url; }