Rename file
This commit is contained in:
parent
4e3da87809
commit
faf0254ffa
2 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
import { SocketError } from "./errors";
|
import { SocketError } from "./errors";
|
||||||
import { ManagedSocket } from "./managed-socket";
|
import { ManagedSocket } from "./socket";
|
||||||
import { wrap, unwrap, deserialize } from "./messages";
|
import { wrap, unwrap, deserialize } from "./messages";
|
||||||
|
|
||||||
export { ManagedSocket, SocketError, wrap, unwrap, deserialize };
|
export { ManagedSocket, SocketError, wrap, unwrap, deserialize };
|
||||||
|
|
|
@ -42,7 +42,6 @@ export class ManagedSocket {
|
||||||
constructor(url: string, handlers: HandlerDefinitions = {}) {
|
constructor(url: string, handlers: HandlerDefinitions = {}) {
|
||||||
this.url = url;
|
this.url = url;
|
||||||
|
|
||||||
// Use provided handlers
|
|
||||||
this.onMessage = handlers.onMessage ?? this.onMessage;
|
this.onMessage = handlers.onMessage ?? this.onMessage;
|
||||||
this.onError = handlers.onError ?? this.onError;
|
this.onError = handlers.onError ?? this.onError;
|
||||||
this.onConnected = handlers.onConnected ?? this.onConnected;
|
this.onConnected = handlers.onConnected ?? this.onConnected;
|
Loading…
Add table
Add a link
Reference in a new issue