🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@crossevents/sdk-helper

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crossevents/sdk-helper

Helper Classes for CrossEvents TS SDKs

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

about

simple helper for SDKs. It contains the ConnectionBase.ts

Connection.i() example

export default class Connection extends ConnectionBase {
    private static instance: Connection;
    public static async i(): Promise<Connection> {
        if (!Connection.instance) {
            Connection.instance = new Connection();

            // INIT nats
            await Connection.instance.initNats(
                process.env.NATS_HOST as string,
                process.env.NATS_TOKEN as string
            );

            // init REST
            await Connection.instance.initREST(
                process.env.MEDIA_HOST as string,
                process.env.MEDIA_API_KEY as string
            );
        }

        return Connection.instance;
    }
    
    // the generated route methods
}

FAQs

Package last updated on 27 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts