now running

This commit is contained in:
2018-03-15 01:05:13 +01:00
parent 76cb8a36fc
commit c009cd337d
13 changed files with 335 additions and 19 deletions

View File

@ -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 () {
}
}
}

View File

@ -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 };