Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespaced remotes created incorrectly #67

Closed
safazi opened this issue Apr 11, 2022 · 2 comments
Closed

Namespaced remotes created incorrectly #67

safazi opened this issue Apr 11, 2022 · 2 comments
Assignees
Labels
Bug Something isn't working

Comments

@safazi
Copy link

safazi commented Apr 11, 2022

Version: 3.0.0

Code:

import Net, { Definitions as def } from "@rbxts/net";

export = Net.CreateDefinitions({
    initialize: def.ServerAsyncFunction<() => boolean>(),

    realm: def.Namespace({
        subscribe: def.ServerToClientEvent<[realm: string]>(),
        unsubscribe: def.ServerToClientEvent<[realm: string]>(),
    }),
});

Produces:
image

@safazi
Copy link
Author

safazi commented Apr 11, 2022

Worth noting that calling

definitions.Server.GetNamespace("realm").Get("subscribe");

will create the remote properly

image

@Vorlias Vorlias added the Bug Something isn't working label Apr 12, 2022
@Vorlias Vorlias self-assigned this Apr 12, 2022
@Vorlias
Copy link
Member

Vorlias commented May 17, 2022

Sorry this took so long, should be fixed in 3.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants