Skip to content

Custom messages are not processed when sending to oneself #1524

@akyoto

Description

@akyoto

Describe the bug
Custom messages are ignored on the host when the receiving ID is the host itself.

To Reproduce

  1. Start hosting.
  2. Register a custom message handler with a Debug.Log("I expect to see this!");
  3. Send a custom message to NetworkManager.Singleton.ServerClientId.

Actual outcome
The log message will not appear. The custom message from client ID 0 to client ID 0 (itself) was ignored.

Expected outcome
Since the host is both a client and a server I expect it to process all custom messages. It makes testing with a single client & server in 1 window much easier.

Environment (please complete the following information):

  • OS: Windows 10
  • Unity Version: 2022.1.0b1.2470
  • Netcode Version: v1.0.0-pre3

Metadata

Metadata

Assignees

Labels

priority:mediumThis issue has medium priority and may take some time to be resolvedstat:importedStatus - Issue is tracked internally at Unitytype:bugBug Report

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions