smartuniverse/ts/interfaces/socketfunctionrequests.ts

20 lines
418 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: {
subscriptionStatus: 'subscribed' | 'unsubscribed'
};
}
export interface ISocketRequest_ProcessMessage {
method: 'processMessage';
request: interfaces.IUniverseMessage;
response: {
messageStatus: 'ok'
};
}