memelabs / dggchat Goto Github PK
View Code? Open in Web Editor NEWDestinygg chat Go bindings
License: MIT License
Destinygg chat Go bindings
License: MIT License
Errors are going to change to a slightly different format, so ideally for now both formats should be handled gracefully until the switch is fully made.
Also new mute parameters.
I sometimes get this when trying to connect.
seems to happen randomly, I don't change anything.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x70 pc=0x228b60]
goroutine 28 [running]:
github.com/gorilla/websocket.(*Conn).NextReader(0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/pi/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:938 +0x14
github.com/gorilla/websocket.(*Conn).ReadMessage(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/pi/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:1028 +0x1c
github.com/Memelabs/dggchat.(*Session).listen(0x20824d0)
/home/pi/go/pkg/mod/github.com/!memelabs/[email protected]/session.go:164 +0x24
created by github.com/Memelabs/dggchat.(*Session).open
/home/pi/go/pkg/mod/github.com/!memelabs/[email protected]/session.go:115 +0xfc
Due to firefox tabs continually crashing on me, I quickly hit the 5 connection count cap (https://github.com/destinygg/chat/blob/master/connection.go#L138).
Rather than outright rejecting new connections, would it make sense to close old connections (resetting to 0) and allowing new connections?
I'd be perfectly willing to put in a patch/PR should anyone have any input on this.
ian@home ~ $ netstat | awk '/destiny/' tcp 0 0 192.168.1.4:53654 destiny.gg:https ESTABLISHED tcp 0 0 192.168.1.4:54422 destiny.gg:https ESTABLISHED tcp 0 0 192.168.1.4:54232 destiny.gg:https ESTABLISHED tcp 0 0 192.168.1.4:54588 destiny.gg:https ESTABLISHED tcp 0 0 192.168.1.4:53466 destiny.gg:https ESTABLISHED
I believe @SoMuchForSubtlety is having this issue
Right now errors are handled by the errorHandler, but it's not possible to determine for what message the error was and thus handling it is not really possible.
It is possible to determine if the message was sent successfully if we wait for the ws to respond with either an error or confirmation.
There would need to be a mutex for the ws that gets locked every time we send a message until confirmation is received to prevent getting errors or confirmation meant for a different message.
Transition to using github actions over travis
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.