Skip to content

Commit

Permalink
Un-deprecate WebsocketConnection::getActiveWebsockets() and make `s…
Browse files Browse the repository at this point in the history
…tatic`, returning `const WebsocketList` to prevent dangerous modifications. See SmingHub#1469
  • Loading branch information
mikee47 committed Feb 24, 2019
1 parent 051ad80 commit c8b52e6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Sming/SmingCore/Network/Http/Websocket/WebsocketConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,12 @@ class WebsocketConnection
return (this == &rhs);
}

/** @deprecated Will be removed */
WebsocketList& getActiveWebsockets() SMING_DEPRECATED
/**
* @brief Obtain the list of active websockets
* @retval const WebsocketList&
* @note Return value is const as only restricted operations should be carried out on the list.
*/
static const WebsocketList& getActiveWebsockets()
{
return websocketList;
}
Expand Down

0 comments on commit c8b52e6

Please sign in to comment.