Skip to content

Commit

Permalink
Fix backwards compatibility with WebsocketIncomingCB on older plugins
Browse files Browse the repository at this point in the history
The signature changed in #4.
  • Loading branch information
peace-maker committed Sep 6, 2017
1 parent de00da6 commit 1f45439
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripting/include/websocket.inc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ functag WebsocketCloseCB public(WebsocketHandle:websocket);
* @param String getPath The GET path transmitted upon connection by the client.
* @noreturn
*/
functag WebsocketIncomingCB Action:public(WebsocketHandle:websocket, WebsocketHandle:newWebsocket, const String:remoteIP[], remotePort, String:protocols[256], String:getPath[2000]);
funcenum WebsocketIncomingCB
{
Action:public(WebsocketHandle:websocket, WebsocketHandle:newWebsocket, const String:remoteIP[], remotePort, String:protocols[256]),
Action:public(WebsocketHandle:websocket, WebsocketHandle:newWebsocket, const String:remoteIP[], remotePort, String:protocols[256], String:getPath[2000])
};

/**
* triggered if a websocket receives data
Expand Down

0 comments on commit 1f45439

Please sign in to comment.