now running
This commit is contained in:
@ -3,12 +3,24 @@ import * as plugins from './smartuniverse.plugins';
|
||||
import { Observable } from 'rxjs';
|
||||
import { IServerGetMessagesRequestBody, IServerPutMessageRequestBody } from './smartuniverse.classes.universe'
|
||||
|
||||
export class UniverseClient {
|
||||
public sendMessage(message, messagePayload) {
|
||||
export interface IClientOptions {
|
||||
serverAddress: string
|
||||
}
|
||||
|
||||
export class UniverseClient {
|
||||
public options;
|
||||
|
||||
constructor(optionsArg: IClientOptions) {
|
||||
this.options = optionsArg;
|
||||
}
|
||||
|
||||
public sendMessage(message, messagePayload) {
|
||||
plugins.smartrequest.post(this.options.serverAddress, {
|
||||
requestBody: messagePayload
|
||||
})
|
||||
}
|
||||
|
||||
pulic getMessageObservable () {
|
||||
public getMessageObservable () {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ import * as smartexpress from 'smartexpress';
|
||||
import * as smartfile from 'smartfile';
|
||||
import * as smartrequest from 'smartrequest';
|
||||
import * as smartrx from 'smartrx';
|
||||
import * as smartsocket from 'smartsocket';
|
||||
import * as smarttime from 'smarttime';
|
||||
|
||||
export { lik, path, smartcli, smartexpress, smartfile, smartrx, smartrequest, smarttime };
|
||||
export { lik, path, smartcli, smartexpress, smartfile, smartrx, smartrequest, smartsocket, smarttime };
|
||||
|
Reference in New Issue
Block a user