# \#websocket

**URL:** https://forums.swift.org/tag/websocket/569.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [AsyncSequence from URLSessionWebSocketTask?](https://forums.swift.org/t/asyncsequence-from-urlsessionwebsockettask/82858)

<div class="topic-metadata">

**Author:** [@CodebyCR](https://forums.swift.org/u/CodebyCR)\
**Replies:** 10\
**Last updated:** [November 3, 2025, 9:23am UTC](https://forums.swift.org/t/asyncsequence-from-urlsessionwebsockettask/82858 "2025-11-03T09:23:49Z")

</div>

Hey there, I’m currently planing with WebSockets and was a bit surprised that I don’t found any method to get an Async(Throwing)Sequence with the incoming Messges. Anyways I think that is a common expectation, so are t…

---

## [Introducing LCLWebSocket: a lightweight websocket client and server library!](https://forums.swift.org/t/introducing-lclwebsocket-a-lightweight-websocket-client-and-server-library/77308)

<div class="topic-metadata">

**Author:** [@johnnzhou](https://forums.swift.org/u/johnnzhou)\
**Replies:** 2\
**Last updated:** [January 21, 2025, 1:53am UTC](https://forums.swift.org/t/introducing-lclwebsocket-a-lightweight-websocket-client-and-server-library/77308 "2025-01-21T01:53:07Z")

</div>

Hi! We are excited to announce the release of lcl-websocket. It is a lightweight websocket library designed to for both client and server to streamline websocket communications. We are a group of researchers and volunt…

---

## [Using WebSocketKit outside of Vapor examples/documentation](https://forums.swift.org/t/using-websocketkit-outside-of-vapor-examples-documentation/51924)

<div class="topic-metadata">

**Author:** [@leisurehound](https://forums.swift.org/u/leisurehound)\
**Replies:** 4\
**Last updated:** [October 22, 2024, 6:48am UTC](https://forums.swift.org/t/using-websocketkit-outside-of-vapor-examples-documentation/51924 "2024-10-22T06:48:22Z")

</div>

At https://docs.vapor.codes/3.0/websocket/overview/ it suggests that WebSocketKit can be used independently of vapor. However the example is using an HTTPClient object to start a websocket. But HTTPClient is not part of…

---

## [Online Game with GateEngine targeting all viable platforms, including Wasm](https://forums.swift.org/t/online-game-with-gateengine-targeting-all-viable-platforms-including-wasm/73352)

<div class="topic-metadata">

**Author:** [@shial4](https://forums.swift.org/u/shial4)\
**Replies:** 5\
**Last updated:** [August 7, 2024, 12:43pm UTC](https://forums.swift.org/t/online-game-with-gateengine-targeting-all-viable-platforms-including-wasm/73352 "2024-08-07T12:43:14Z")

</div>

As I started to build my game with GateEngine and it requires connection over web socket I've updated my Web socket lib to support WASM To come is my API lib adding similar support but for CRUD requests will post here…

---

## [Retrieving HTTP response headers during a typed WebSocket client upgrade](https://forums.swift.org/t/retrieving-http-response-headers-during-a-typed-websocket-client-upgrade/68529)

<div class="topic-metadata">

**Author:** [@samalone](https://forums.swift.org/u/samalone)\
**Replies:** 0\
**Last updated:** [November 18, 2023, 5:21pm UTC](https://forums.swift.org/t/retrieving-http-response-headers-during-a-typed-websocket-client-upgrade/68529 "2023-11-18T17:21:51Z")

</div>

I'm trying to use the new typed WebSocket upgraders in NIO, and I can't figure out how to retrieve the response headers sent by the server during the initial HTTP phase of the WebSocket upgrade process. I adapted my cli…

---

## [How to send un-solicited data when using WebSockets](https://forums.swift.org/t/how-to-send-un-solicited-data-when-using-websockets/62433)

<div class="topic-metadata">

**Author:** [@neil456](https://forums.swift.org/u/neil456)\
**Replies:** 2\
**Last updated:** [January 6, 2023, 8:14pm UTC](https://forums.swift.org/t/how-to-send-un-solicited-data-when-using-websockets/62433 "2023-01-06T20:14:27Z")

</div>

I have a WebSocket client server based on the example code that is basically working. Client can connect and send request. The server responds, all all is happy. There are two pipeline handlers, BackPressureHandler an…

---

## [Swift NIO closes WebSocket channel on Client](https://forums.swift.org/t/swift-nio-closes-websocket-channel-on-client/58142)

<div class="topic-metadata">

**Author:** [@Cole](https://forums.swift.org/u/Cole)\
**Replies:** 0\
**Last updated:** [June 15, 2022, 6:57am UTC](https://forums.swift.org/t/swift-nio-closes-websocket-channel-on-client/58142 "2022-06-15T06:57:40Z")

</div>

I have an issue where my Websocket Channel is closing. To begin let me discuss the basic setup. My Project has a NIO Client Websocket Library. One part of the application spools up the websocket and is under constant us…
