mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-11-02 01:24:34 +00:00
when closing websocket at end of call send ws code 1000
This commit is contained in:
1 parent
1b5b37184b
commit
dae307d71f
2 files changed
+3
-1
No files matched your search
@@ -166,8 +166,9 @@ class WsRequestor extends BaseRequestor {
|
||||
this.logger.debug('WsRequestor:close closing socket');
|
||||
try {
|
||||
if (this.ws) {
|
||||
this.ws.close();
|
||||
this.ws.close(1000);
|
||||
this.ws.removeAllListeners();
|
||||
this.ws = null;
|
||||
}
|
||||
|
||||
for (const [msgid, obj] of this.messagesInFlight) {
|
||||
|
||||
Reference in new issue
Block a user