Render chat messages that come over the socket

This commit is contained in:
Gabe Kangas
2022-05-03 13:01:50 -07:00
parent 15becc5121
commit 8b07eb7457
5 changed files with 21 additions and 15 deletions

View File

@@ -1,8 +1,6 @@
import { message } from 'antd';
import { SocketMessageType } from '../interfaces/socket-events';
interface SocketMessage {
type: SocketMessageType;
data: any;
@@ -61,7 +59,7 @@ export default class WebsocketService {
// On ws error just close the socket and let it re-connect again for now.
onError(e) {
console.error(e)
console.error(e);
handleNetworkingError(`Socket error: ${e}`);
this.websocket.close();
// if (!this.isShutdown) {