Comments (2)
Yep, I confirm it.
Now I'm trying to fix it. Do you have any ideas?
Because of TcpListener we need to close all connections with users, so, how to do this? Without sending command to client to break connection.
from alchemy-websockets.
I fix it.
as here saying:
You are responsible for closing your accepted connections separately.
so, open
Classes\UserContext.cs
and add this code to UserContext class:
public void Disconnect()
{
Context.Connection.GetStream().Close();
Context.Connection.Close();
}
~UserContext()
{
Disconnect();
}
And if you collect your clients with their UserContexts then you can close all connections for each user. It should help you to stop the WebSocket server
from alchemy-websockets.
Related Issues (20)
- Cannot run another Server instance HOT 3
- Max concurrent connections clients
- I get error at server when parse message
- No further connections can be made, after Client drops off network. HOT 2
- Quick Edit to Home Page Website
- Header longer then 512 bytes maybe incorrectly parsed HOT 1
- WebSocketClient.Connect fails with NullReferenceException HOT 2
- Connection closed before receiving a handshake response HOT 1
- Calling websocket.close() from client, causes server to crash[Fatal signal 6 (SIGABRT)]
- Wrong UTF symbol in long string. HOT 1
- GUI Application doesn't closes at all HOT 1
- Performance degrades when sending 100s of websocket messages
- Problem with client reconnection
- Broadcast Method?
- Alchemy onClose Event & Port already in use
- Client receives incomplete data HOT 3
- Server does not seem to send connected status to client
- Can't start two ServerSockets with different ports HOT 1
- In OnReceive CurrentContext.Data remains null
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 alchemy-websockets.