« first day (1 day earlier)    last day (15 days later) » 

04:00
@bwoebi I keep getting 403 for the /ws end :(
also, multiple ips tried to brute force sshd since I opened the droplet.
the js tries to call var socket = new WebSocket("ws://domain:1415/ws"); and gives me 403
github.com/ekinhbayar/gitamp is the repo now by the way
on my server.php I expose to 80, on handler origins I tried all of them but nah
not sure what I'm missing here
need to sleep a bit until the funeral I have to attend... it's there offline at gitamp.audio
 
6 hours later…
09:43
@Ekin github.com/ekinhbayar/gitamp/blob/master/src/Websocket/… … so there's something wrong with origins
I addee both ports there though
But one thing I wonder, how would I expose both ports? Adding two ->export ()? @bwoebi that was what I was doing
But unsure if it was correct to do
Sorry, expose () was what I meant... mobile at the moment
09:59
@Ekin dunno, that's the only place where the 403 might have been generated…
add var_dump()'s therre and check…
How do I use the aerys logger btw?
I tried to output it there but...
Else dumps somehow doesn't show up
 
6 hours later…
15:55
@Ekin you can only use dump in debug mode
 
5 hours later…
21:10
@bwoebi redis is working all okay now but I still get connection went away upon gitamp restart
not sure what can be the reason it does this if redis server is up and running
same for increment
Also, I set it to 40secs now and trying
Do you have any suggestions to make it request & emit less by any chance?
21:34
@Ekin I think you better ask Niklas here, I'm not deep into redis
@Ekin you mean like not having it request for every client?
21:45
@bwoebi that and also mainly I think I could have the same 1k size on this end too
(kinda thinking out loud to figure out the best way)
So if there's already data, I don't request that much
I'm up to 45secs intervals now and still 1k is reached quite easy
Each requests comes with 30 items
@Ekin what about installing a repeat watcher which updates a dedicated object which websockets pull from?
@bwoebi A watcher like the arrays that hold connections onOpen?
Idea as you said it sounds good, need to think of the how bit
@Ekin not sure what you mean?
@Ekin you set a repeat up on start and then that's how it goes?
22:00
Oh right, on start
@bwoebi I meant, a watcher = an array or something to hold the json coming from github or something else?
I feel like I need to fill something up to a fixed size and request when that's already emitted
the watcher identifier is what repeat() returns … the watcher is the name for internal structure confirming the presence of the repeating task
But the emitting bit is done pretty fast, while the main queue works on the front end
oooh right, now I get what you meant
I used that in Jeeves as well
You just have to somehow register a callback on that object (doing the fetching/parsing) in order to broadcast to all clients

« first day (1 day earlier)    last day (15 days later) »