From 9f828428bea8b4f43b7a35f3b9b38059f9e4ada3 Mon Sep 17 00:00:00 2001 From: Kelp Date: Fri, 8 May 2020 16:21:40 +0800 Subject: [PATCH] docs: follow jsdoc --- lib/frontend/src/api.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }