Questions tagged [disconnect]

A break or interruption in an existing connection, continuum, or process.

A break or interruption in an existing connection, continuum, or process. This can include:

  • Ending a connection to a server
  • Ending a connection to internet
  • Terminating operating system services
  • Removing event handlers from an object
403 questions
3
votes
3 answers

How to test a disconnection when testing an AJAX application?

I'm testing an AJAX application where we need to handle a temporary loss of connection to the server or other errors (i.e. like in Gmail or Google Calendar.) What's a good way to simulate this in testing? For example, is there a browser plugin that…
Andrew Mao
  • 35,740
  • 23
  • 143
  • 224
3
votes
1 answer

iOS Core Bluetooth no disconnect notification

I'm developing an app using CoreBluetooth and I need to be notified if the bluetooth connection is lost. I establish connection with many BLE devices, put the app into background mode and wait for disconnect notification. The problem is I get…
3
votes
1 answer

detect python-xmpp timeouts

I have an application which shall send xmpp messages. Those occasions are rare (sometimes none for days) but then again maybe coming in bunches. I have no use of receiving anything, I just want to send. The straight-forward approach runs into…
Alfe
  • 56,346
  • 20
  • 107
  • 159
3
votes
1 answer

Make client send disconnect event on tab close node.js

I'm making a multiplayer game with a node.js server with socket.io and a html5 canvas with a js file in it for client. Now I have the socket.on('disconnect',function(){my code here}); on server side, but when a user closes the tab the client is…
Wingblade
  • 9,585
  • 10
  • 35
  • 48
2
votes
1 answer

Will a disconnect() called on a particular `QObject::Signal()` will disconnect lambda automatically?

Suppose, there is a lambda connected to a signal as below: connect(pObject, &Object::mySignal, [] () { lambda; }); Will below statement disconnect the lambda automatically? disconnect(pObject, &Object::mySignal, nullptr, nullptr); I am asking…
iammilind
  • 68,093
  • 33
  • 169
  • 336
2
votes
1 answer

Socket.io socket data availability after disconnect

When the socket disconnect event is fired with socket.io (node.js), for how long will the socket's data still be available? If I have a store (like redis) that asynchronously returns data, is it safe to still perform lookups? I need to get all data…
Tom
  • 8,536
  • 31
  • 133
  • 232
2
votes
0 answers

Disconnecting ZeroMQ socket and ZMQ_EVENT_DISCONNECTED

The ZeroMQ API documentation states that the event (source here): ZMQ_EVENT_DISCONNECTED The socket was disconnected unexpectedly. The event value is the FD of the underlying network socket. Warning: this socket will be closed. How is…
Michael Schubert
  • 2,726
  • 4
  • 27
  • 49
2
votes
1 answer

SignalR angular gets disconnected while getting a dictionary object

Using asp.net core 2.2 and angular 7, (asp.netcore:signalr 1.1.0 + angular:"@aspnet/signalr": "^1.1.4") it was working fine until i tried to send a dictionary to angular. when it tries to send the dictionary it gets disconnected. Utils.js:209…
Salar Kazazi
  • 135
  • 3
  • 11
2
votes
1 answer

Python discord bot disconnect() function not working

So I'm coding a discord bot in Python3.7 using the new discord.py rewrite and I've come across a snag in regards to the disconnect() function called on a VoiceClient My code is as follows: @bot.command() async def leave(ctx): if ctx.author.voice…
Cam J
  • 21
  • 5
2
votes
2 answers

BLE (Bluetooth low energy) on android, create and reconnect to device which is not always present

Well I want to connect to an OBD2 dongle with BLE, which switches on/off according to the car state. The Android device itself will be running all the time, as far as planned now. AFAIK I have two options for reconnecting: a) set the connectGatt…
chksr
  • 192
  • 3
  • 13
2
votes
5 answers

How do I disconnect a user from a voice channel in discord.js?

I don't know how to make the user leave the voice channel. I'm trying to make a verify thing, I have it all setup except for the leave voice channel part. bot.on('voiceStateUpdate', (oldMember, newMember) => { let newUserChannel =…
asciidude
  • 272
  • 1
  • 3
  • 19
2
votes
1 answer

Swift: disconnect an AVAudioUnit from playing AVAudioEngine

I am playing an audio file with some effects, at some point. Here is the code: engine = AVAudioEngine() playerB = AVAudioPlayerNode() playerB.volume = 0.5 let path = Bundle.main.path(forResource: "ukulele", ofType: "wav")! let…
mahdi
  • 149
  • 12
2
votes
1 answer

Erlang: Sending on a closed connection

If a client connects to a server over a normal tcp connection, and then later on the client's connection cuts out, the server will get (assuming active mode) {tcp_closed,Socket}. But there are cases where the server won't know that the client has…
Mediocre Gopher
  • 2,274
  • 1
  • 22
  • 39
2
votes
1 answer

What could be stopping OnDisconnectedAsync from being called for clients who disconnect disgracefully?

When a client disconnects disgracefully (such as cable pull, crash, or internet drops). OnDisconnectedAsync on the server is never called. I've waited upwards of 15 minutes with a breakpoint inside the function. I am using…
steve
  • 301
  • 2
  • 10
2
votes
1 answer

socket.io bad connection tolerance

I need to implement a system that is tolerant to occasional disconnections between client and server. I understand that socket.io implements a HeartBeat ping pong thing that makes sure that a client is still alive and it times out after a certain…
Adham Zahran
  • 1,973
  • 2
  • 18
  • 35