onyx-lang / onyx

✨ The compiler and developer toolchain for Onyx
https://onyxlang.io
BSD 2-Clause "Simplified" License
576 stars 21 forks source link

Feature request: WebSocket Support #123

Closed josdelien closed 8 months ago

josdelien commented 8 months ago

Please consider adding WebSocket support to the Onyx standard (core) library or as an official package like https://github.com/onyx-lang/pkg-http-client and https://github.com/onyx-lang/pkg-http-server.

A a single, specialized and native library for Websocket features is crucial for building real-time, interactive and high-performant web/networking applications, allowing for full-duplex communication channels over a single TCP connection.

brendanfh commented 8 months ago

This package now exists! It lives here. It is largely feature complete, aside from a couple of minor protocols details that will be cleaned up soon. I tested it with echo.websockets.org and CoinBase's Market Data API and both worked flawlessly.