Mojira Archive
BDS-1013

Cannot Use wsserver Command (connect)

I've created a simple websocket server in order capture more in game events than console output would allow (mainly so that I can create two-way chat in Discord).

The test I set up works flawlessly in single player but fails entirely from a BDS console. There's no output. Enter an incorrect address or port in single player results in a "Could not connect to server" message, but the BDS console is empty.

Edit: Per many people's suggestion, I also tried initiating the connection from a game client as an op. This resulted in a "command not found" type of error.

Environment

Windows Server 2016 Datacenter Edition, Windows 10, Ubuntu

Linked Issues

Attachments3

BDS-1013-Evidence.zip

Joshua Greenlaw

BDS1206Actual.png
BDS1206Actual.png

IonicEcko

BDS1206Expected.png
BDS1206Expected.png

IonicEcko

Comments14

Can you send me the scripts you used to create the WebSocket server, I have tried many different scripts but I haven't managed to get it working yet

Because it might help, code is here: https://pastebin.com/SpJPj6s1

It uses Node.js and MS SQL Server Express, all secrets have been scrubbed. Again, it works in single player, but not in BDS or Realms.

Hi Josh,

Is this still an issue in 1.14.32.1?

Are you able to provide steps to reproduce your issue including what you're expecting should happen?

Ionic

Thanks for your response! I've uploaded a zip file with several things.

  • SinglePlayer-ConnectCommand.png shows me using the connect command in single player
  • SinglePlayer-ConnectSuccess.png is the success message, plus me sending a chat message
  • SinglePlayer-WebsocketOutput.png shows the websocket listener I have receiving the message
  • BDS-ConnectCommand.png is me trying to use the same command from a BDS instance in game
  • BDS-ConnectFailure.png is the failure message that I received
  • BDS-Console-ConnectFailure.png shows me trying to use the commands directly from the BDS console
    • Yellow highlight is the command as used previously, with a valid listener address
    • Blue highlight shows the command used with no arguments
  • Finally, the MC_WSS folder contains a barebones Node.js application which I used for a websocket listener

My expectation is that on a BDS instance, I should be able to use the connect command to connect to the same websocket listener as in single player. Please let me know if you have additional questions. 

Thank you very much Joshua Greenlaw.

One last question if I may, do you believe that this and BDS-1206 are describing the same issue?

I believe they do (they both just seem to be regarding the lack of websocket support) but just want a second set of eyes more verse in the websocket stuff because I've never looked at it so am out of my depth

And following on from that is there anything there not covered in this one that, if moved over to here, covers the missing functionality and can be put forward as one report?

Ionic

Both issues are describing the same issue, as far as I can tell.  Both issues were fairly verbose, but I think they contain the same information. One report should be good. 

Importing comments from BDS-1206:

Vyacheslav Makhonin:
What I expected to happen was...:
The connection will be established, which BDS will notify us of, and the WebSocket server will receive messages from the game chat.
[singleplayer as example, /connect 127.0.0.1]

What actually happened was...:
No reaction to command input from the server side.

Steps to Reproduce:

  1. Run any WebSocket-server software;
  2. Run BDS;
  3. Insert command connect [uri] or wsserver [uri].

clarkx86:
Vyacheslav Makhonin Thanks for the example pictures!
When executing the "help" command in BDS v1.14.32.1, it now seems that there are only 3 help-pages instead of 18 (like back in v1.12). The connect or wsserver command isn't even listed anymore, but executing one of them doesn't result in an error like
"Unknown command: example. Please check that the command exists and that you have permission to use it."
that pops up when trying to run any non-existing arbitrary command.

Just wanted to chime in here: do we know when this will be slotted to be fixed (in terms of release versions)? If you cannot comment on a specific release, it'd be great to know if this is intended to be picked up soon in the future.

In terms of impact for any prioritization: this makes it impossible to add any server-side interactions, outside of behavior packs, that integrate with outside systems. I was also looking at using this to make chat commands for my dedicated server (and also hook it up to Discord to sync chat to encourage playing on the server when people start joining). Having this command working will help immensely to letting the community start building integrations with the Bedrock Edition, and hopefully will help migrate people from the Java Edition.

(Hope you all are staying safe with COVID-19 going around!)

Volunteers man the bug tracker so we know as much as you do unfortunately.

Its been raised but its also important to remember that the functionality has never been available and was only logged because the console commands (at one point) indicated it was available but was subsequently removed. So its very possible this could get closed as a feature request. Not that it will, just best to keep expectations in check

There's a feedback post over at https:// feedback.minecraft.net for more administrative options that I would suggest going and giving an upvote if management and functionality expansion are things you would like to see in BDS! (and I'm totally in that boat )

Ionic

There's a feedback post over at https:// feedback.minecraft.net for more administrative options that I would suggest going and giving an upvote if management and functionality expansion are things you would like to see in BDS! (and I'm totally in that boat  )

Is there a specific link you can post for that?

 

 

This would be amazing to have
i was working on my own chat logging system
and now cant finish it

Just to add, one effect of this bug is that "Code Connection for Minecraft" can't be used on a Bedrock Dedicated Server (because it relies on the /connect command).

Hello, I just wanted to confirm that the issue is still there, even in the latest bds software in mc 1.18.2.03.

I would also like to point out that this is not a simple extra feature, it is very important especially for servers (like it's mad that it works fine in sigle-player where it is useless... and not in servers where it is vital if you wanna bring your server to something more than a world to play in with a few friends).

History18

Hazard

Deleted comment:

Hey Joshua.

 

This is something that would have to be fixed on Mineplex's end. You can report this to Mineplex on their forums at: https://www.mineplex.com/bugs

 

Hope this helps.

Joshua Greenlaw

Changed description:

I've created a simple websocket server in order capture more in game events than console output would allow (mainly so that I can create two-way chat in Discord).

0

The test I set up works flawlessly in single player but fails entirely from a BDS console. There's no output. Enter an incorrect address or port in single player results in a "Could not connect to server" message, but the BDS console is empty.

0

Edit: Per many people's suggestion, I also tried initiating the connect from a game client as an op. This resulted in a "command not found" type of error.

Joshua Greenlaw

Changed description:

I've created a simple websocket server in order capture more in game events than console output would allow (mainly so that I can create two-way chat in Discord).

0

The test I set up works flawlessly in single player but fails entirely from a BDS console. There's no output. Enter an incorrect address or port in single player results in a "Could not connect to server" message, but the BDS console is empty.

0

Edit: Per many people's suggestion, I also tried initiating the connection from a game client as an op. This resulted in a "command not found" type of error.

IonicEcko

Added labels: awaiting-response

Removed labels:

Joshua Greenlaw

Added attachment: BDS-1013-Evidence.zip

Joshua Greenlaw

Removed attachment: BDS-1013-Evidence.zip

Joshua Greenlaw

Added attachment:

IonicEcko

Added affects versions: 1.14.32.1

IonicEcko

Added labels: feature-check

Removed labels: awaiting-response

IonicEcko

Added attachment:

Added attachment:

[Mod] OcelotOnesie
IonicEcko

Added Confirmation Status: Confirmed

[Mod] OcelotOnesie
[Bot] Arisa

Added affects versions: 1.17.11 Hotfix

[Mod] Greymagic27
Works As Intended
Joshua Greenlaw
35
25
Confirmed
324331
feature-check
1.17.11 Hotfix 1.8.1.2 1.14.32.1