@geckos.io/client
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -9,3 +9,3 @@ import { RawMessage, Data, EventName, EventCallbackClient, ConnectionEventCallbackClient, EventCallbackRawMessage } from '@geckos.io/common/lib/typings'; | ||
/** Get the channel's id. */ | ||
readonly id: import("@geckos.io/common/lib/typings").ChannelId; | ||
readonly id: string | undefined; | ||
/** Emit a message to the server. */ | ||
@@ -50,7 +50,7 @@ emit(eventName: EventName, data?: Data | null): void; | ||
declare const geckosClient: (options?: { | ||
url?: import("@geckos.io/common/lib/typings").ChannelId; | ||
url?: string | undefined; | ||
port?: number | undefined; | ||
label?: import("@geckos.io/common/lib/typings").ChannelId; | ||
label?: string | undefined; | ||
}) => ClientChannel; | ||
export default geckosClient; | ||
//# sourceMappingURL=client.d.ts.map |
@@ -19,3 +19,3 @@ import { RawMessage, Data, ChannelId, EventName } from '@geckos.io/common/lib/typings'; | ||
dataChannel: RTCDataChannel; | ||
id: ChannelId; | ||
id: string | undefined; | ||
}>; | ||
@@ -22,0 +22,0 @@ } |
{ | ||
"name": "@geckos.io/client", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Real-time client/server communication over UDP using WebRTC and Node.js", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
}, | ||
"homepage": "https://github.com/geckosio/geckos.io#readme", | ||
"homepage": "http://geckos.io", | ||
"directories": { | ||
@@ -35,3 +35,3 @@ "lib": "lib" | ||
"engines": { | ||
"node": "8.x || 10.x || 11.x" | ||
"node": "^8 || ^10 || ^11" | ||
}, | ||
@@ -38,0 +38,0 @@ "scripts": { |
34240