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
Comments14
History18
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.
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).
0The 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:
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).
0The 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.
0Edit: Per many people's suggestion, I also tried initiating the connect
Added labels: awaiting-response
Added affects versions: 1.14.32.1
Added labels: feature-check
Removed labels: awaiting-response
Added is duplicated by link: BDS-1206/connect and /wsserver (Websockets) are not available in BDSDuplicate
Added Confirmation Status: Confirmed
Added is duplicated by link: BDS-14806/connect (wsserver) command does not worksDuplicate
Added affects versions: 1.17.11 Hotfix
Resolution: Unresolved → Works As Intended


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.
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-1206are 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:
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
Is there a specific link you can post for that?
Expand Bedrock Dedicated Server (BDS) Configuration/Customization Options is probably the best worded one,.
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).