zimjs 16.3.0 → 16.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -3938,11 +3938,16 @@ declare namespace zim {
|
|
|
3938
3938
|
|
|
3939
3939
|
// ++++++++++++++++++++++++++++++++++++++
|
|
3940
3940
|
// ZIM SOCKET
|
|
3941
|
-
|
|
3941
|
+
export class Socket {
|
|
3942
3942
|
constructor(server: string, appName: string, roomName?: string, maxPeople?: number, fill?: boolean, initObj?: {})
|
|
3943
3943
|
changeRoom(appName: string, roomName?: string, maxPeople?: number, fill?: boolean, initObj?: {}): void
|
|
3944
3944
|
requestTime(): void
|
|
3945
3945
|
requestSync(): void
|
|
3946
|
+
on(event:string, listener:Function): void
|
|
3947
|
+
off(event:string, listener:Function): void
|
|
3948
|
+
offAll(): void
|
|
3949
|
+
setProperty(propertyName:string, propertyValue:string|number|boolean): void
|
|
3950
|
+
setProperties(objectOfPropertiesToSet:{}): void
|
|
3946
3951
|
getMyProperty(propertyName: string): any
|
|
3947
3952
|
getMyData(): {}
|
|
3948
3953
|
getOtherProperty(id: string, propertyName: string): any
|