Comments (2)
Hey,
Unfortunately there is no way using the Socket.IO protocol, and therefore in Socket.IO-Erlang, to forcefully close a badly behaving client. The only way for you to do this today is to send the client a message with would make it disconnect.
It is my understanding that in the upcoming version of the Socket.IO protocol, there is a way for the server to forcefully disconnect a client.
I'm closing this issue right now as there is no way of implementing it directly within this server.
Cheers,
Ómar
from socket.io-erlang.
Ómar,
My apologies, I meant "close" as in the tcp socket, not the socket.io "connection." I am aware of the (long overdue) additions in 0.7 but they do not apply to my situation. Feel free to keep this issue closed, though; I've finally been able to follow the code well enough to come to a working solution and I'm probably just being overly paranoid anyway.
Cheers! :)
from socket.io-erlang.
Related Issues (20)
- Requests getting lost when handle_request receives non-selectively HOT 14
- socketio_listener:start/1 HOT 14
- disconnect event not sent for more than one client HOT 6
- Tests should be possible to run on something else than OSX
- Unable to stream to Android Froyo HOT 1
- submodules will have to be changed soon HOT 1
- git update submodule fails HOT 3
- unicode crash HOT 15
- socketio_data:encode does not count escapes when determining the length of a JSON string HOT 20
- Cannot include ex_uri.hrl HOT 7
- No disconnect by timeout for xhr-polling HOT 1
- Variable 'Host' is unbound when compiling HOT 3
- TCP Error when a client refresh HOT 4
- GET http://localhost:7878/socket.io/socket.io.js 404 (Not Found) HOT 4
- Can't use two event handlers for two different ports from the same socketio application HOT 3
- wrong post
- Can't run demo HOT 4
- Error on demo run HOT 18
- Not able to connect socket server using angular 6 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socket.io-erlang.