smartuniverse/ts/interfaces/socketfunctionrequests.ts

21 lines
443 B
TypeScript
Raw Normal View History

2019-09-09 22:29:08 +00:00
import * as interfaces from './index';
export interface ISocketRequest_SubscribeChannel {
method: 'subscribeChannel';
request: {
name: string;
passphrase: string;
};
response: {
2019-09-10 08:55:10 +00:00
subscriptionStatus: 'subscribed' | 'unsubscribed';
2019-09-09 22:29:08 +00:00
};
}
export interface ISocketRequest_ProcessMessage {
method: 'processMessage';
request: interfaces.IUniverseMessage;
response: {
2019-09-10 08:55:10 +00:00
messageStatus: 'ok' | 'channel not found';
2019-09-09 22:29:08 +00:00
};
2019-09-10 08:55:10 +00:00
}