Problem with msg.post to another collection (SOLVED)

I have tried send a message to script in another collection and run to this issue:
“editor:/editor#editor” - works
“editor:editor#editor” - dont works
msg.url(“editor”, “editor”, “editor”) - dont works, because it create “editor:editor#editor”

Is this normal behavior, or maybe i miss something? Because this really strange, either msg.url must add slash or either both address variant must work

This is the expected behavior. The addressing rules are explained and documented here: Addressing in Defold

socket:/path/to/object#component -- valid url
socket:path/to/object#component -- invalid url

Oh, i need msg.url(“editor”, “/editor”, “editor”). Thanks for reply.

1 Like