Skip to main content

[Technical Issue] WebSocket Specification Changes?



  • Justin Support
    Support Beacon of Knowledge

    Hey HOSHINO HISASHI, I'm looking into this for you but it looks like some of the backend changes may have changed websockets. We're looking into this to see if there's any info we can get you, but I can't make any promises. 

    For what it's worth, thanks for using the template!! 


    Justin-san, I believe this change has a very broad impact as Code Connection is no longer available in the Bedrock version as well.

    Code Connection also plays an important role in the REST API call functionality, which allows Smart Speaker and Minecraft to work together.

    I creating educational materials with this feature, which greatly expands the possibilities of Minecraft, so we would be very disappointed if it stops working in the next release.

    We would appreciate it if you could open up the specifications and provide us with an environment where we can use it to create educational materials.

    Currently, I developing an extension function in MakeCode for micro:bit and have just started to support internationalization.

    Thank you for your comment!

  • Micah M
    Beacon of Knowledge


    It's very exciting to see the types of custom applications you are making using micro:bit, MakeCode and websockets in Minecraft!

    You are correct that we did recently update the websockets APIs (/connect) in both Minecraft Bedrock and Minecraft: Education Edition in version 1.18.30. You can see the details of the changes in the Bedrock patch notes when the changes were released:

    We are in the final stages of updating code connection with the most recent websocket changes, so very shortly you should see an update to the Code Connection app that will allow you to continue using Bedrock + Code Connection with the recent websockets changes.

    Unfortunately, we don't currently have plans to support websockets as a formal, external facing API, and so there aren't plans on publishing any formal documentation for websockets.

  • Moderator Beacon of Knowledge Super Star

    I don't understand a single word, but I love being around the cool people. =D


    Hi, all

    Minecraft:bit demo on BedRock.

    Demo of micro:bit v2 attached to a GROVE shield and displaying the number of block breaking events on a 4digit Display.

    Confirmed to work with M:EE.


    Special thanks to @faishasj ーsan!


  • t i

    Hi, I have the same issue. Is the problem solved? Are there any documents for the new JSON format of the websocket messages?

  • Aleece Landis
    Bug Zapper Beacon of Knowledge Super Star

    So I'm not sure exactly how things work for the code connection but I have discovered that if you want Bedrock to be able to connect to a WSS on the same computer, you need to Get windows to allow loopback for the folder where bedrock is.
    I've been running a WSS program with education edition since late 2021 and it still works.  Bedrock edition still has the /wss command but I was unable to get my program to work with Bedrock...  Until I discovered this.

    If you’re on Windows, you need to enable Minecraft to be able to do loopbacks, and this is done using the mysterious command in an elevated cmd prompt: CheckNetIsolation LoopbackExempt -a -n=microsoft.minecraftuwp_8wekyb3d8bbwe

    So I have done that and now Minecraft Bedrock will connect with my wss program.

    I do not know if this was the situation before with Bedrock or if this will fix the code connection being able to work with bedrock or not. (I apparently never tried my program with Bedrock since I wrote it for Education But this past week I was working on learning about the Script API for bedrock and wondered if I could use that in conjunction with my WSS program)


Please sign in to leave a comment.