mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 00:16:00 +00:00
introduced yarn workspace
This commit is contained in:
13
packages/api/src/utility/socket.js
Normal file
13
packages/api/src/utility/socket.js
Normal file
@@ -0,0 +1,13 @@
|
||||
let socket = null;
|
||||
|
||||
module.exports = {
|
||||
set(value) {
|
||||
socket = value;
|
||||
},
|
||||
get() {
|
||||
return socket;
|
||||
},
|
||||
emit(message, data) {
|
||||
socket.emit(message, data);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user