feat: 上线聊天室功能模块
This commit is contained in:
@@ -20,7 +20,10 @@ const receiveMsg = (connection) => {
|
||||
|
||||
});
|
||||
};
|
||||
export default () => {
|
||||
export function start(){
|
||||
signalR.start(`chat`, receiveMsg);
|
||||
}
|
||||
export function close(){
|
||||
signalR.SR.stop();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user