« first day (1 day earlier)
← previous day
last day (15 days later) »
Ekin
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…
bwoebi
09:43
@Ekin
github.com/ekinhbayar/gitamp/blob/master/src/Websocket/…
… so there's something wrong with origins
Ekin
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
bwoebi
09:59
@Ekin dunno, that's the only place where the 403 might have been generated…
add var_dump()'s therre and check…
Ekin
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…
bwoebi
15:55
@Ekin you can only use dump in debug mode
5 hours later…
Ekin
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
gist.github.com/ekinhbayar/2830d65cd1b11997851300356924feef
.
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?
bwoebi
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?
Ekin
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
bwoebi
@Ekin what about installing a repeat watcher which updates a dedicated object which websockets pull from?
Ekin
@bwoebi A watcher like the arrays that hold connections onOpen?
Idea as you said it sounds good, need to think of the
how
bit
bwoebi
@Ekin not sure what you mean?
@Ekin you set a repeat up on start and then that's how it goes?
Ekin
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
bwoebi
the watcher identifier is what repeat() returns … the watcher is the name for internal structure confirming the presence of the repeating task
Ekin
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
bwoebi
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)
← previous day
last day (15 days later) »
all rooms
Transcript for
Jan
2
Jan '17
3
Jan
18
Room
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile