-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
33 lines (29 loc) · 1.16 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
declare namespace zim {
export class Socket extends zim.EventDispatcher {
constructor(server: string, appName: string, roomName?: string, maxPeople?: number, fill?: boolean, initObj?: {})
changeRoom(appName: string, roomName?: string, maxPeople?: number, fill?: boolean, initObj?: {}): void
requestTime(): void
requestSync(): void
on(event:string, listener:Function): void
off(event:string, listener:Function): void
offAll(): void
setProperty(propertyName:string, propertyValue:string|number|boolean): void
setProperties(objectOfPropertiesToSet: {}): void
getMyProperty(propertyName: string): any
getMyData(): {}
getOtherProperty(id: string, propertyName: string): any
getOtherData(id: string): {}
getSenderProperty(propertyName: string): any
getSenderData(): {}
getProperties(propertyName: string): [any]
getData(): {}
getLatestValue(propertyName: string): any
getLatestTime(propertyName: string): number
getLatestValueID(propertyName: string): string
getLatestProperties(propertyName: string): [any]
appendToHistory(someText: string): void
clearHistory(): void
dispose(): void
}
}
export = zim