diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-15 19:57:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-15 19:57:06 +0200 |
commit | 06e580f5ba801cf524b1d82753127a9992c7b907 (patch) | |
tree | 22e58e32db221b9272812f32f01391a5dbce4108 /modules/websocket | |
parent | 96123035da59f2d317c763abd4da8273fd6f5074 (diff) | |
parent | 66a5166870587ef64c50d9e11f927ba1a5539577 (diff) |
Merge pull request #26792 from Faless/webrtc_pr
Initial WebRTC support
Diffstat (limited to 'modules/websocket')
-rw-r--r-- | modules/websocket/register_types.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/modules/websocket/register_types.cpp b/modules/websocket/register_types.cpp index ed6cc5638e..39bf3de982 100644 --- a/modules/websocket/register_types.cpp +++ b/modules/websocket/register_types.cpp @@ -60,25 +60,6 @@ void register_websocket_types() { _SET_HINT(WSS_OUT_PKT, 1024, 16384); #ifdef JAVASCRIPT_ENABLED - EM_ASM({ - var IDHandler = {}; - IDHandler["ids"] = {}; - IDHandler["has"] = function(id) { - return IDHandler.ids.hasOwnProperty(id); - }; - IDHandler["add"] = function(obj) { - var id = crypto.getRandomValues(new Int32Array(32))[0]; - IDHandler.ids[id] = obj; - return id; - }; - IDHandler["get"] = function(id) { - return IDHandler.ids[id]; - }; - IDHandler["remove"] = function(id) { - delete IDHandler.ids[id]; - }; - Module["IDHandler"] = IDHandler; - }); EMWSPeer::make_default(); EMWSClient::make_default(); EMWSServer::make_default(); |