mirror of
https://github.com/parnic/node-intellicenter.git
synced 2025-06-17 02:21:53 -05:00
Get basic test up and passing
This replaces the 'ws' library with built-in websockets so that we can mock a server and successfully connect to it. A simple test verifies that Unit is handling a message request and response as we expect it to.
This commit is contained in:
2
esm/unit.d.ts
vendored
2
esm/unit.d.ts
vendored
@ -30,6 +30,8 @@ export declare class Unit extends EventEmitter {
|
||||
* Connects to the specified unit and maintains a connection to it until `close()` is called.
|
||||
*/
|
||||
connect(): Promise<void>;
|
||||
private onOpen;
|
||||
private onError;
|
||||
/**
|
||||
* Closes the connection to the unit.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user