Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@geckos.io/common

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geckos.io/common - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

lib/bridge.js

@@ -7,3 +7,3 @@ "use strict";

var eventemitter3_1 = __importDefault(require("eventemitter3"));
var Bridge = (function () {
var Bridge = /** @class */ (function () {
function Bridge() {

@@ -10,0 +10,0 @@ this.eventEmitter = new eventemitter3_1.default();

@@ -6,7 +6,8 @@ "use strict";

var SendMessage = function (dataChannel, eventName, data) {
var _a;
if (data === void 0) { data = null; }
var _a;
if (dataChannel.readyState === 'open') {
try {
if (eventName === constants_1.EVENTS.RAW_MESSAGE && data !== null && helpers_1.isRawMessage(data)) {
// @ts-ignore
dataChannel.send(data);

@@ -13,0 +14,0 @@ }

@@ -12,2 +12,9 @@ declare const ArrayBufferView: any;

export declare type RawMessage = USVString | ArrayBuffer | ArrayBufferView;
export interface ServerOptions {
iceServers?: RTCIceServer[];
label?: string;
ordered?: boolean;
maxRetransmits?: number;
maxPacketLifeTime?: number;
}
export interface EventCallbackClient {

@@ -14,0 +21,0 @@ (data: Data): void;

{
"name": "@geckos.io/common",
"version": "0.0.2",
"version": "0.0.3",
"description": "Real-time client/server communication over UDP using WebRTC and Node.js",

@@ -20,5 +20,2 @@ "main": "lib",

},
"engines": {
"node": ">=10.0.0"
},
"scripts": {

@@ -25,0 +22,0 @@ "build": "tsc --build tsconfig.json",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc