mattermost / mattermost/react-native-network-client
value of type 'any WebSocketClient' has no member 'url'
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 48
- Forks
- 26
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 2
Description
Hi, i received the following error during compiling when i try to run my app.
I think it may be related to StarScream version. But I am not sure how to fix this by myself.
`
❌ (node_modules/@mattermost/react-native-network-client/ios/WebSocketClient.swift:204:32)
202 | func didReceive(event: WebSocketEvent, client: Starscream.WebSocketClient) {
203 |
204 | guard let url = client.url() else { return }
| ^ value of type 'any WebSocketClient' has no member 'url'
205 |
206 | switch event {
207 | case .connected(let headers):
`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with node_modules/@mattermost/react-native-network-client/ios/WebSocketClient.swift around line 204 and check the Starscream version and WebSocketClient API used by the package. Done means the reported iOS compile error is resolved and the app builds successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, swift
- Domain
- mobile, networking
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100