question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to join channel

See original GitHub issue

I copied the implementation using websocket-sharp from the integration test folder.

I’m able to connect to the websocket server with socket.Connect, but when try to join a channel with

var roomChannel = socket.MakeChannel("tester:phoenix-sharp");
roomChannel.On(Message.InBoundEvent.phx_close, m => closeMessage = m);
roomChannel.On("after_join", m => afterJoinMessage = m);

roomChannel.Join(params)
  .Receive(Reply.Status.Ok, r => okReply = r)
  .Receive(Reply.Status.Error, r => errorReply = r);

nothing happens. It doesn’t raise an error on the server or client side.

Does anybody know what could be happening? I’m using JSON.net.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Shivang44commented, Oct 26, 2019

One possibility is an exception being thrown in the callback are causing problems. Can you please make sure the Unity console isn’t showing any errors?

THAT WAS THE ISSUE. Thank you so much and sorry for wasting your time. Do you know why this this wasn’t actually raising an exception in the unity3d debugger? It makes no sense, the console was just empty. But removing the throw new NotImplementedException(); allows me to join a channel.

Is something swallowing this exception somewhere? Looks like websocketsharp catches it and sends some error somewhere?

0reactions
Mazyodcommented, Oct 26, 2019

I think it’s part of the WebSocketSharp implementation. Many network/websocket implementations in C# swallow callback exceptions, since they shouldn’t crash the network code, I’ve seen it with BestHTTP.

Glad it was resolved! Thanks for using this library 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

unable to join channel (not using secure connectio
'unable to join channel (not using secure connection)' I saw there was a newer version of MIRC so I downloaded that and re-booted...
Read more >
Unable to join channel. maximum number of channel - 10017
i see this problem happened sep 2019 and was closed after the devs fixed, i am now getting as at july 2021 i...
Read more >
Unable to Join Because Wi-Fi Channels in Use by Several ...
Unable to Join Because Wi-Fi Channels in Use by Several Other Networks · First try to restart · Turn Location Services off and...
Read more >
Can't join grouping channel? : r/2007scape
I've been trying to join the Shield of Arrav grouping chat-channel since last night. I got a few messages saying that the group...
Read more >
Having Trouble Joining The Membership? Here's The Fix.
Thanks, Bryan Help Gun Owners of America defend your right to keep and bear arms: https://www.gunowners.org/ You can support this channel ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found