Skip to content

Commit

Permalink
docs: follow jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
kelp404 committed May 8, 2020
1 parent 0f312e5 commit 9f82842
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/frontend/src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9f82842

Please sign in to comment.