VB.net conversion (OnMessage' is not an event of 'Object')

Open
#255 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
20/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp, php, visualbasic
Domain
api, documentation

Research direction

Start with the VB.NET AddHandler snippet and the websocket-sharp OnMessage event API described in the issue. Determine whether the problem is an API usage gap or requires a documented VB.NET conversion; done means a clear, working way for VB.NET users to attach the handler, with no file or test identified in the payload.

Written by the indexing model from the issue text.

Description

I try to connect to my PHP WebSocket server with your lib, but I am programming in Visual Basic.
I got error when I try to add handler to OnMessage event like this:

AddHandler ws.OnMessage, Function(sender, e) Console.WriteLine("Laputa says: " + e.Data)
Error is:

OnMessage' is not an event of 'Object'

Dominant language
C#
Stars
6.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from sta/websocket-sharp

All issues in sta/websocket-sharp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.