2023-07-25 11:33:13 +02:00
|
|
|
import * as interfaces from './index.js';
|
2019-09-10 00:29:08 +02:00
|
|
|
|
|
|
|
|
export interface ISocketRequest_SubscribeChannel {
|
|
|
|
|
method: 'subscribeChannel';
|
|
|
|
|
request: {
|
|
|
|
|
name: string;
|
|
|
|
|
passphrase: string;
|
|
|
|
|
};
|
|
|
|
|
response: {
|
2019-09-10 10:55:10 +02:00
|
|
|
subscriptionStatus: 'subscribed' | 'unsubscribed';
|
2019-09-10 00:29:08 +02:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ISocketRequest_ProcessMessage {
|
|
|
|
|
method: 'processMessage';
|
|
|
|
|
request: interfaces.IUniverseMessage;
|
|
|
|
|
response: {
|
2026-05-01 11:22:06 +00:00
|
|
|
messageStatus: 'ok' | 'channel not found' | 'authentication required';
|
2019-09-10 00:29:08 +02:00
|
|
|
};
|
2019-09-10 10:55:10 +02:00
|
|
|
}
|
2026-05-01 11:22:06 +00:00
|
|
|
|
|
|
|
|
export interface ISocketRequest_Unsubscribe {
|
|
|
|
|
method: 'unsubscribe';
|
|
|
|
|
request: interfaces.IServerUnsubscribeActionPayload;
|
|
|
|
|
response: {};
|
|
|
|
|
}
|