Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URLSessionWebSocketTask unavailable on Linux #63

Closed
jt9897253 opened this issue Jan 24, 2021 · 4 comments
Closed

URLSessionWebSocketTask unavailable on Linux #63

jt9897253 opened this issue Jan 24, 2021 · 4 comments
Labels
type:question Support or code-level question

Comments

@jt9897253
Copy link
Contributor

Building this project on Linux is currently broken.

Problem is, URLSessionWebSocketTask is not available on Linux, not even in FoundationNetworking.

For reference, this is for example discussed in the swift forum: "Is there a WebSocketTask in FoundationNetworking?"

Solution proposed there was using websocket-kit.

For now, to make my code compile locally, I added #if !os(Linux) in ParseLiveQueryDelegate.swift.

Also, it might be a good idea to add a Linux build to continuous integration to catch Linux issues more early.

@cbaker6
Copy link
Contributor

cbaker6 commented Jan 24, 2021

Are you using version 1.0.2? https://github.com/parse-community/Parse-Swift/releases

ParseLiveQuery won't be available for Linux until URLSessionWebSocketTask is added to Swift since this SDK is intended to remain dependency free. You can see the PR for more details.

@cbaker6 cbaker6 added the type:question Support or code-level question label Jan 24, 2021
@jt9897253
Copy link
Contributor Author

Did not notice that 1.0.2 was released, now it compiles.

Thanks to everyone working on this project!

@cbaker6
Copy link
Contributor

cbaker6 commented Jan 24, 2021

@jt9897253 since you are using Swift Linux, you may know about how to access the file system using Swift. Would you be willing to take a look at this issue so Linux devs can use ParseFile? https://github.com/parse-community/Parse-Swift/projects/2#card-53414087

@jt9897253
Copy link
Contributor Author

Let's see, if time permits, I can try to have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question Support or code-level question
Projects
None yet
Development

No branches or pull requests

2 participants