MrMasrozYTLIVE
|
d50e0df6a1
|
Time to do lots of debugging 😭
|
2024-06-14 17:05:00 +03:00 |
|
MrMasrozYTLIVE
|
8262bd4eb7
|
Hm. Its pretty strange. Thats why i dont really like JavaScript
|
2024-06-14 17:04:08 +03:00 |
|
MrMasrozYTLIVE
|
457bf01bc3
|
Trying out isPrototypeOf() function
|
2024-06-14 17:02:26 +03:00 |
|
MrMasrozYTLIVE
|
feff30fecc
|
Testing if sendMessage argument extends Message class
|
2024-06-14 17:00:35 +03:00 |
|
MrMasrozYTLIVE
|
b3ccda32ea
|
did lots of work on bot package
|
2024-06-14 16:43:17 +03:00 |
|
Raven Scott
|
bd885bb591
|
Fix peerName in Message received
|
2024-06-14 04:46:19 -04:00 |
|
|
01ca4aae5a
|
Update chatBot/includes/Client.js
|
2024-06-14 08:43:27 +00:00 |
|
|
65576e82b3
|
Added proper shutting down
|
2024-06-14 08:35:54 +00:00 |
|
Raven Scott
|
116b23d70f
|
Move back to global peer count
|
2024-06-13 20:47:45 -04:00 |
|
Raven Scott
|
b50bd0bbab
|
Room Counts done better
|
2024-06-13 20:02:01 -04:00 |
|
Raven Scott
|
052fbecc20
|
Remove not needed join line
|
2024-06-12 00:08:34 -04:00 |
|
Raven Scott
|
b9db313eff
|
Fix chatBot
|
2024-06-11 17:40:02 -04:00 |
|
MrMasrozYTLIVE
|
00b26d6afe
|
Changed lots of stuff inside of bot code. Got rid of peers in message object.
|
2024-06-11 21:47:42 +03:00 |
|
MrMasrozYTLIVE
|
4aa205cd73
|
Got rid of 2 useless classes
|
2024-06-11 20:56:02 +03:00 |
|
MrMasrozYTLIVE
|
5bb5e63105
|
Trying to merge is so hard
|
2024-06-11 20:54:43 +03:00 |
|
MrMasrozYTLIVE
|
4415d196de
|
small change in text
|
2024-06-11 20:53:30 +03:00 |
|
Raven Scott
|
e57db27a13
|
Fixing bot
|
2024-06-10 22:20:36 -04:00 |
|
Raven Scott
|
157c8af4f4
|
Update bot Client to work with the new connection logic
|
2024-06-10 22:04:57 -04:00 |
|
Raven Scott
|
01fee56692
|
Fixing bot messages
|
2024-06-10 19:49:46 -04:00 |
|
MrMasrozYTLIVE
|
edf61f0462
|
Started working on proper classes for messages (files and text), user peer class, chatroom class
|
2024-06-10 21:34:50 +03:00 |
|
MrMasrozYTLIVE
|
7275b69948
|
Added onIcon and onFile events. onMessage is now being called only on messageType == message. Removed debug code from swarm.on('update').
|
2024-06-10 21:23:59 +03:00 |
|
MrMasrozYTLIVE
|
56d8a8091e
|
Yeah it actually works :yay:
|
2024-06-10 21:18:33 +03:00 |
|
MrMasrozYTLIVE
|
4ec0be2774
|
I think i got it to work lol
|
2024-06-10 21:17:16 +03:00 |
|
MrMasrozYTLIVE
|
27b3528304
|
It can have multiple topics :( time to figure a way to do it then ig
|
2024-06-10 21:13:52 +03:00 |
|
MrMasrozYTLIVE
|
2ca07e46c3
|
so topics in .map() are array. Is it array that always has only one buffer or can have lots of them???
|
2024-06-10 21:11:46 +03:00 |
|
MrMasrozYTLIVE
|
e396bcbb0b
|
b4a doesnt work its time to debug again
|
2024-06-10 21:10:25 +03:00 |
|
MrMasrozYTLIVE
|
3b7f0fbd1d
|
replaced topic.toString with b4a.toString(topic)
|
2024-06-10 21:09:33 +03:00 |
|
MrMasrozYTLIVE
|
79bdd04810
|
Lmfao i did peer.topics
|
2024-06-10 21:06:09 +03:00 |
|
MrMasrozYTLIVE
|
1dca21fe75
|
Did an oopsie with array.filter ([array.filter] instead of [array].filter)
|
2024-06-10 21:03:01 +03:00 |
|
MrMasrozYTLIVE
|
edd3f632cf
|
Now its time to debug peer topics since its empty right now
|
2024-06-10 21:02:01 +03:00 |
|
MrMasrozYTLIVE
|
340362872f
|
Lol it actually was inverted for some reason
|
2024-06-10 21:00:22 +03:00 |
|
MrMasrozYTLIVE
|
230cdd1321
|
Huh? Is it actually inverted??
|
2024-06-10 20:58:59 +03:00 |
|
MrMasrozYTLIVE
|
acb5609d03
|
Its not working 😭 time to debug
|
2024-06-10 20:57:32 +03:00 |
|
MrMasrozYTLIVE
|
66d684e473
|
Filter all the peerInfo topics that are undefined and then map all of them to hex string
|
2024-06-10 20:56:02 +03:00 |
|
MrMasrozYTLIVE
|
033330fd04
|
started working on parsing peers & topics they're currently in on swarm update event using 'swarm.peers'
|
2024-06-10 20:46:59 +03:00 |
|
MrMasrozYTLIVE
|
bfe0bafebc
|
I removed all of the debugging code for now to push the fix for app.js
|
2024-06-10 18:23:47 +03:00 |
|
MrMasrozYTLIVE
|
d233f9e5aa
|
I sometimes really hate nodej
|
2024-06-10 18:07:59 +03:00 |
|
MrMasrozYTLIVE
|
4134e20403
|
Array of arrays got fixed but i still cant figure out the issue with topics ehh
|
2024-06-10 18:06:00 +03:00 |
|
MrMasrozYTLIVE
|
d993090f8b
|
I actually didnt fix the issue with array of arrays. Now it should be fine
|
2024-06-10 18:03:15 +03:00 |
|
MrMasrozYTLIVE
|
ecfc62ff2c
|
Forgot to check if my temp array is > 0 😭
|
2024-06-10 18:00:51 +03:00 |
|
MrMasrozYTLIVE
|
7ed5681639
|
Huh publicKey is undefined lol
|
2024-06-10 17:59:54 +03:00 |
|
MrMasrozYTLIVE
|
5e52298196
|
Ehh its not remotePubKey but just pubKey
|
2024-06-10 17:58:37 +03:00 |
|
MrMasrozYTLIVE
|
5d6728f39f
|
Filtering all the peers except myself now
|
2024-06-10 17:57:52 +03:00 |
|
MrMasrozYTLIVE
|
2ed13e50f7
|
Ok i will stop exiting to test it properly
|
2024-06-10 17:53:36 +03:00 |
|
MrMasrozYTLIVE
|
aa53cb487b
|
I tried to iterate over not iterable object again 😭
|
2024-06-10 17:50:20 +03:00 |
|
MrMasrozYTLIVE
|
d1ee697c84
|
There's something even more interesting called 'peerInfo.topics' lol. So bad it has no good docs and i have to do this stuff to learn more
|
2024-06-10 17:48:24 +03:00 |
|
MrMasrozYTLIVE
|
7751d03b57
|
Found something interesting called 'swarm.peers'
|
2024-06-10 17:44:32 +03:00 |
|
MrMasrozYTLIVE
|
6980520a85
|
Lol i tried to iterate over not-iterable object
|
2024-06-10 17:40:57 +03:00 |
|
MrMasrozYTLIVE
|
7399585d9e
|
Trying to find a way to check which topic each pear is from
|
2024-06-10 17:38:50 +03:00 |
|
MrMasrozYTLIVE
|
fda25abe8c
|
Oops debugging didnt go as planned lol
|
2024-06-10 17:34:57 +03:00 |
|