Skip to main content

foundation-comms.getsocket

Home > @genesislcap/foundation-comms > getSocket

getSocket() function​

Gets Socket from the DI container.

Signature:

export declare function getSocket(): Socket;

Returns:

Socket

Remarks​

A utility method for host applications that are not using decorators or the DI container.

Example​

import { getSocket } from '@genesislcap/foundation-comms';
...
private socket = getSocket();