destinygg / chat Goto Github PK
View Code? Open in Web Editor NEWThe chat back-end for destiny.gg, written in Go, based on Golem (github.com/trevex/golem)
The chat back-end for destiny.gg, written in Go, based on Golem (github.com/trevex/golem)
The WebView of android devices pre 4.4 does not support web sockets.
This prevents chat from working in an android app I'm working on for destinys stream -- for the vast majority of android users.
The solution is to use flash web sockets on the front end.
See
https://github.com/trevex/golem/wiki/Using-flash-as-WebSocket-fallback
This will fix the problem because android devices that are older than v 4.4 DO support flash in their web views.
This has the added benefit of allowing super old desktop browsers to work with the chat.
I have some emote proposals that I think will fit in nicely with the ones already implemented.
Here's a link:
Possibly using a redis pub/sub channel
This feature will be used to announce new subscriptions at first.
When a user posts a link along with an emote, given the link is long enough or there's enough text to space it out and make the message multi-line, if the emote overlaps the link anywhere in the slightest it makes the link unclickable (applies to all links (generic/nsfw/nsfl)).
OS: Windows 8 Pro 6.2.9200 (x64)
Browser: Chromium 44.0.2379.0 (x64)
Java: 1.8.0_40 & 1.7.0_55 (x86)
Flash: 17.0.0.149 (x86)
probably need to lock the whole hub while updating the user and namescache
The Destiny.gg chat will load previous posts, but fails on connecting and reconnect attempts while I am on my school's wifi.
The wifi here is not super strict, as I can stream Twitch and Youtube at pretty decent quality. Just can not connect to chat :(
Destiny.gg/ws currently doesn't follow https://content-security-policy.com
Chat is broken in Safari 10 and will be broken in future versions of chrome.
if you type "/w CeneZa 0" or type "0" into the one on one whisper chat you get the following error:
"Required field missing message"
I can't seem to sign-in with Twitter for some reason out of no where. Just today I can't. It redirects me instead. I am subbed with that account.
Nothing in chat works on firefox 35.0.1. It just a blank screen. Video will load, but you cant press any buttons in chat and nothing is scrolling. You can hover buttons and they will turn white, but nothing pops up. Works in other browsers just fine.
The navigator.userAgent returns: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; Valve Steam Tenfoot/1373418487; ) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Safari/535.19
The text input field of the chat can be typed in, but submitting it doesn't send the message to chat (checked with another browser open). Also, as you can see, you can't see the rest of chat. Settings and Users also don't have any effect.
When you click on the twitch player for any reason (volume, quality change, etc.) your cursor is no longer in chat to type. Ideally, there would be a keyboard/button combination that lets you jump straight to the chat line so that you can continue typing in chat, similar to Ctrl+L or Command+L in your browser.
After about 30 seconds new chats on Destiny.gg/Bigscreen stop appearing and require a manual chat reload. When trying to post a chat, it says "Disconnected, retry in 1 seconds ..." and doesn't post. The errors I am seeing on the console are related to content security policy and 1321[Violation] Added non-passive event listener to a scroll-blocking event. Consider marking event handler as 'passive' to make the page more responsive. See
enabling/disabling the "Show time for messages" setting stops me from sending a message. If I want to send a message I must refresh (Windows 7, Chrome 29.0.1547.62m and Firefox 23.0.1 [on a different account]), nothing major but @sztanpet told me to submit bug report so here you go.
I can still type into the message box, but 'Enter' does not send the message and neither does the 'Send' button.
probably related to the refreshuser issue #6
so that the clients dont have to handle this themselves
Im pretty noob with programming and shit, but somehow i managed to get the website working with the given instructions, but now how do i setup this chat? can you give me a little help? (im testing it local on Windows).
Im sry its not really an Issue, but i didnt fond another way to contact.
Requesting a full delete of existing messages from a user when you ignore them
thank you for your patience
The way I position my broswer windows causes the #chat-panel element to place its #chat-panel-resize-bar juuuuust offscreen. This then forces my browser to draw a horizontal scrollbar and I find that simply unacceptable and visually distracting. From what I can tell the placement and width of the resize bar (only while the #chat-panel element is of class 'chat-left') ends up just outside the max-width of the page since its placed all the way to the right and then draws itself outwards(?).
All and all this is not a big deal but its bothering me enough to mention it.
keep a sliding window of emotes and the time they were posted by the user,
do not let them post another if in the given period they have posted more than some number
managed to not be consistent, fix it up because it looks retarded
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
Can it connect to IRC server?My irc server runs websocket module.
store the last N seen ips of the user under a redis set keyed by the userid, ban those ips if the user is offline
maybe make a lua script to make a circular buffer atomically
Would appreciate the ability to do a https://www.destiny.gg/embed/chat?highlight=dan without being signed into the chat.
OBS allows me to add a custom dock url and I use this to embed dgg chat. However, It does not enable highlighting on my name.
To clarify, loading https://www.destiny.gg/embed/chat?highlight=dan would simply enable highlighting for that term, even if not logged in.
Stupid feature I know and certainly nor priority, but if its easy to do I would appreciate it.
user 9181 is permanently banned, yet the interface says "no active bans found"
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.