Major Version 2.0 #49
SSS-Says-Snek
announced in
Announcements
Replies: 3 comments 1 reply
-
ngl who uses discussions |
Beta Was this translation helpful? Give feedback.
0 replies
-
i tried to send this message but due to github discussions totally using hisock it resulted in a BrokenPipeError / ConnectionResetError / 10054 / Bad file descriptor / TypeError / NoMessageException / NoHeaderException |
Beta Was this translation helpful? Give feedback.
1 reply
-
Stop being annoying again -_- |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Full Changelog: 1.2...2.0
After over two months, we have finally finished the biggest
HiSock
version since v0.0.1:Version 2.0
! This release is huge, with97
commits,52
changed files,5,464
added lines, and3,331
deleted lines. A HUGE shoutout to @sheepy0125, as this release wouldn't have been possible without his contributions.Now, without further ado, let's get into the changelog!
MAJOR BREAKING CHANGES
ThreadedHiSockClient
andThreadedHiSockServer
'sstart_client()
andstart_server()
have been renamed tostart()
.stop_client()
andstop_server()
have been renamed tostop()
.recv()
, also with a new API. Check the documentation and the examples for how to use the new method.NEW
*
! This command would be sent whenever a command not handled by a client's functions is detected.start()
forHiSockClient
andHiSockServer
! Instead of having to program a while loop themselves that callsupdate()
orrun()
(which has now been privatized), all you have to do is to callclient.start()
orserver.start()
.HiSockServer
has been added! Every minute, the server sends a request to all clients to check whether they are active. If they aren't, they will be disconnected from the server. This functionality can be disabled via a parameter to the constructor.on()
has a new parameteroverride
. If the event has the same name as a reserved event and this isTrue
, it'd behave like a regular event listener.callback
parameter instart()
, the function will get called every time the client/server gets "updated" (_run()
or_update()
finish). Similarly, if a function is passed to theerror_handler
parameter instart()
, the function will get called if the client/server ever encounters an exception.IMPROVED
MessageCacheMember
. Now, you can use the dot notation (e.g.cache.header
) to access a cache member's contents.ClientInfo
. Now, you can use dot notation to access a client's info. You can also directly pass this to.send()
and other related commands, instead of passing the IP attribute.change_name()
andchange_group()
resets the client to its original name.setup.py
yet again, with new commands, more colors, and more debug information.BUG FIXES
That's all for this release; it's been a while since we released the latest version, but we hope that HiSock improved with this version. Bye!
This discussion was created from the release Major Version 2.0.
Beta Was this translation helpful? Give feedback.
All reactions