Gerasimos (Makis) Maropoulos

Results 259 comments of Gerasimos (Makis) Maropoulos

Yes, exactly, so you see how modular is neffos, you can create new or wrap an existing compatible upgrader/dialer. For example on kataras/iris, to keep the `iris.Context` linked with the...

You can push a PR when you done with this @roytan883, just note that if your changes have any performance cost create a new file, named wrapper or anything you...

@roytan883 So you made a total new subpacke for var twServer/twDialer = timingwheel.NewTimingWheel(time.Millisecond, 20) and use it inside Socket. I saw the PR and it does contain a lot of...

About deadline, gorilla, ehich has s setting for it, does not reset it to 0 when write is done, also I dont think itmust reset to 0 because on the...

Yes, if you run it from `_examples/stress-test` which broadcasts to all clients and sends-receives messages and keep some connections alive, for 10k it's 234MB here and it's absolutely fine, more...

@hjzCy You can't close the connection immediately from the `ws.OnConnect` event. **If you want to close the connection from OnConnect you should return a NON-NIL ERROR**. Also, there is a...

OK @hjzCy, a `FireDisconnectAlways` option was added. ```sh $ go get github.com/kataras/[email protected] # or go.mod: # require github.com/kataras/neffos v0.0.16 ``` ```go ws := neffos.New([...]) ws.FireDisconnectAlways = true //

@hjzCy The connection is already closed and removed from the server when `ws.OnDisconnect` is fired (see https://github.com/kataras/neffos/blob/15e3a17ca8e37b9e793fd59811e7fb42a30ac5ee/conn.go#L1039). Why you don't use the `neffos.OnNamespaceDisconnect` event instead? It will be called on...

Hello @yunxiangtc, could you please give me more information, I didn't get it, code always speaks by itself, show me what you want from iris/neffos to do.

@mikepony , examples uses `ws://` to connect https://github.com/kataras/neffos/blob/15e3a17ca8e37b9e793fd59811e7fb42a30ac5ee/_examples/basic/browser/app.js#L3 Let me explain, you will always need to register a route on your http web server, the websocket protocol is a **sub-protocol**...