You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A client talking to an LSP server might need to extract `LSP.Packet`s from the server's output `Data` stream.
54
54
55
-
SwiftLSP can detect an `LSP.Packet`at the beginning of any `Data` instance and also offers the `LSP.PacketDetector` for parsing a stream of `Data`incrementally.
55
+
SwiftLSP can parse an `LSP.Packet`from the beginning of a `Data`instance:
56
56
57
57
```swift
58
58
let dataStartingWithPacket = packetTotalData +"Some other data".data(using: .utf8)!
0 commit comments