mphx icon indicating copy to clipboard operation
mphx copied to clipboard

Disconnect client from server

Open r8code opened this issue 7 years ago • 1 comments

Hi, is there a way to reject or disconnect a client from the server? Sorry if I shouldn't have posted in here, I don't know where to ask question about this lib. Nice job btw

r8code avatar Jun 10 '17 04:06 r8code

Here is the best place for help with the lib, sorry I haven't gotten around to commiting a fix to the repo. I'm working on a solution where calling .loseConnection on a connection drops it, but I haven't got much time to spend on mphx these days. I'll see what I can do, sorry about the lack of support :/

Edit - A good solution in the meantime might be to send a 'drop connection' event, and then handle that yourself, if the connection has already been established. That might mean that you don't reject a connection straight away, but has the advantage of being relatively stable, and you can add your own 'reason' data for why the connection should be dropped.

5Mixer avatar Jun 14 '17 08:06 5Mixer