mattermost / mattermost/react-native-network-client

value of type 'any WebSocketClient' has no member 'url'

Open
#127 5 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.