Closed larryr1 closed 11 months ago
I've done some more research. It turns out, Socket.IO has a serverside maximum buffer size to prevent clients trying to overload the server. The amount of data I was sending (~0.5MB) was violating this limit. Adjusting my server's configuration to allow larger packet sizes fixed the problem.
This is a really weird one... I'm trying to send thumbnails of my desktop to a server over the socket connection. The process goes like so:
JS
server requests a thumbnail be sent, with acknowledgement.C#
client's event system routes the event to a handler depending on the event that was sent.When calling
response.CallbackAsync(reply.StringData)
I get aSystem.ObjectDisposedExcetion
. Stack trace:Here is the code that is responsible for routing the event and responding to the callback. I have omitted several
try/catch
andif
statements for brevity.This is the code that sets up the event handler.
I am using undocumented classes for some of the methods, but it appears that I am allowed to use them because they are public and they appear in the overloads for things like
client.onAny(...)
.I'm really lost on what to do next here. Any help is greatly appreciated.