添加依赖管理

This commit is contained in:
whyour
2021-10-23 18:23:32 +08:00
parent 10c07b0a09
commit fbba44d482
19 changed files with 1170 additions and 17 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export default async ({ server }: { server: Server }) => {
if (data) {
const { token = '', tokens = {} } = JSON.parse(data);
if (headerToken === token || tokens[platform] === headerToken) {
conn.write('hanhh');
conn.write(JSON.stringify({ type: 'ping', message: 'hanhh' }));
sockService.addClient(conn);
conn.on('data', (message) => {