fix(types,client,server): improve type safety and harden client/server message handling
This commit is contained in:
@@ -15,6 +15,12 @@ export interface ISocketRequest_ProcessMessage {
|
||||
method: 'processMessage';
|
||||
request: interfaces.IUniverseMessage;
|
||||
response: {
|
||||
messageStatus: 'ok' | 'channel not found';
|
||||
messageStatus: 'ok' | 'channel not found' | 'authentication required';
|
||||
};
|
||||
}
|
||||
|
||||
export interface ISocketRequest_Unsubscribe {
|
||||
method: 'unsubscribe';
|
||||
request: interfaces.IServerUnsubscribeActionPayload;
|
||||
response: {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user