summaryrefslogtreecommitdiff
path: root/modules/websocket
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-08-09 02:58:39 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-04-12 12:41:49 +0200
commit6a1bf006a3837c790a3ed1c3efc8bd2df06a81c5 (patch)
tree3ef2a35293ca6f371e6078d7fadd608d6aefc398 /modules/websocket
parent6008745991fb5191945e936f38cda21f751b7ff6 (diff)
Move IDHandler JS module to platform from Websock
Diffstat (limited to 'modules/websocket')
-rw-r--r--modules/websocket/register_types.cpp19
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();