Skip to content

Implements hxWebSockets, and Implements Functionality to connect to a Server as a Client. - #803

Merged
Raltyro merged 24 commits into
CodenameCrew:hxWebSocketsfrom
ItsLJcool:internet-utils-better
Jul 26, 2026
Merged

Implements hxWebSockets, and Implements Functionality to connect to a Server as a Client.#803
Raltyro merged 24 commits into
CodenameCrew:hxWebSocketsfrom
ItsLJcool:internet-utils-better

Conversation

@ItsLJcool

@ItsLJcool ItsLJcool commented Oct 27, 2025

Copy link
Copy Markdown
Contributor

This is still heavily a WIP because I am building a server along-side making this as a template.

You are more than welcome to also make commits to this PR if you think I fucked something up lol

@ItsLJcool

Copy link
Copy Markdown
Contributor Author

The idea here is we use HTTP formatting for client recieving and sending, to make it at least somewhat easy to manage and understand, we can't really use real HTTP requests because ofc it's a WebSocket now, so we just send data directly, but just making a standard way of communicating to the Template Server.

You can also disable AUTO_DECODE_PACKETS in the FunkinWebSocket so you just recieve the haxe.io.Bytes directly and manage it yourself, if needed.

@Raltyro

Raltyro commented Nov 16, 2025

Copy link
Copy Markdown
Member

oh my socks

@Raltyro

Raltyro commented Nov 29, 2025

Copy link
Copy Markdown
Member

when

@MRK2009

MRK2009 commented Jan 3, 2026

Copy link
Copy Markdown
Contributor

You still busy? bruh

@ItsLJcool ItsLJcool changed the title Reworks PR #520 with newest CodenameEngine Implements hxWebSockets, and Implements Functionality to connect to a Server as a Client. Apr 24, 2026
@ItsLJcool

Copy link
Copy Markdown
Contributor Author

Currently this only supports CodenameEngine as a CLIENT, if you want it to run as a Server then I'll make another PR later down the line to add it, shouldn't be too bad but who would want CNE as a Server is the reason why I don't want to make it lol

@ItsLJcool
ItsLJcool marked this pull request as ready for review April 24, 2026 22:03
@yahyamodder

Copy link
Copy Markdown

praying it never gets merged

@Crimson-is-stupid

Copy link
Copy Markdown

praying this gets merged when lelm is released (aka never)

@ItsLJcool

Copy link
Copy Markdown
Contributor Author

this is ready to be merged btw

@yahyamodder

Copy link
Copy Markdown

lelm is done but it is not released so no this is not ready to be merged yet

@MRK2009

MRK2009 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

lelm is done but it is not released so no this is not ready to be merged yet

reverse-flash-cw-gif

@Raltyro
Raltyro changed the base branch from main to hxWebSockets July 26, 2026 14:54
@Raltyro
Raltyro merged commit 2eadefb into CodenameCrew:hxWebSockets Jul 26, 2026
yahyamodder

This comment was marked as off-topic.

Raltyro pushed a commit that referenced this pull request Aug 1, 2026
… Server as a Client. (#803)

* peak incoming

* FUCKING HELL I GIVE UP FUCK IT USE hxWebSocket BRUHH

* it just works :trollface:

* Implementing a way to addon to the Handshake Header

* so guys, i am the smart, trust :trollface:

* Properly converts the message from the server into either String, Bytes, FunkinPacket.

* Documentation on `FunkinWebSocket` and added `Metrics` to it :)

* whoop

* Reformatted how `FunkinPacket` is managed, and fixed some issues in `FunkinWebSocket`, and update it to reflect new `FunkinPacket`

* Small fixes and small features I forgor to implement

* ocd bro I can't leave this chilling in changes bro im sorry

* fix to ensure that `fromJson` and `appendJson` in `FunkinPacket` will never return null ig

* Fixed an issue where the client would crash if the server sent a raw string.

* QOL implementation to actually use `FunkinPacket.status` inside `FunkinWebSocket`

* implement `send_bytes` in source with Threading, so you can send large binary files easier
Raltyro pushed a commit that referenced this pull request Aug 1, 2026
… Server as a Client. (#803)

* peak incoming

* FUCKING HELL I GIVE UP FUCK IT USE hxWebSocket BRUHH

* it just works :trollface:

* Implementing a way to addon to the Handshake Header

* so guys, i am the smart, trust :trollface:

* Properly converts the message from the server into either String, Bytes, FunkinPacket.

* Documentation on `FunkinWebSocket` and added `Metrics` to it :)

* whoop

* Reformatted how `FunkinPacket` is managed, and fixed some issues in `FunkinWebSocket`, and update it to reflect new `FunkinPacket`

* Small fixes and small features I forgor to implement

* ocd bro I can't leave this chilling in changes bro im sorry

* fix to ensure that `fromJson` and `appendJson` in `FunkinPacket` will never return null ig

* Fixed an issue where the client would crash if the server sent a raw string.

* QOL implementation to actually use `FunkinPacket.status` inside `FunkinWebSocket`

* implement `send_bytes` in source with Threading, so you can send large binary files easier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants