feat: 上线聊天室功能模块

This commit is contained in:
橙子
2024-04-07 16:35:21 +08:00
parent 6aedff75f1
commit 1087b0965d
14 changed files with 340 additions and 72 deletions

View File

@@ -20,7 +20,10 @@ const receiveMsg = (connection) => {
});
};
export default () => {
export function start(){
signalR.start(`chat`, receiveMsg);
}
export function close(){
signalR.SR.stop();
}