Closed sebastianbuechler closed 3 years ago
Hi @sebastianbuechler yesterday I made a test before pushing and everything was working fine. Probably the test was not working as expected. I will check and also I will update the README.md file after that. Hopefully tomorrow night everything will be fine
Thank you for this issue
Also, the callbacks defined for kws.OnConnect and kws.OnMessage do not fire in the example (probably because they are also part of the ikisocket.New() callback.
Yes, that's should be the issue.
@antoniodipinto thanks for your reply.
Additionally, the port notation in the example should be adjusted to app.Listen(":3000")
since the new version of fiber requires this.
Everything should be fixed now with the new update
After upgrading to V2 I wanted to try out the chat example.
First, there is a small error for the middleware because of the upgrade. It should now look like this:
In the example all the callbacks defined with
ikisocket.On()
work as expected. However, everything inside theikisocket.New()
function gets called only after the connection is closed.For example:
Also, the callbacks defined for
kws.OnConnect
andkws.OnMessage
do not fire in the example (probably because they are also part of theikisocket.New()
callback.Any idea on why the
ikisocket.New()
does not behave properly? Do you experience the same behavior?