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

use event dispatch for binding sockets #385

Open
Bednaz98 opened this issue Jul 23, 2023 · 1 comment
Open

use event dispatch for binding sockets #385

Bednaz98 opened this issue Jul 23, 2023 · 1 comment

Comments

@Bednaz98
Copy link

Hey, is it possible to have this plugin use dispatch events instead of having to list out the function in blueprints? This would make things a bit quicker and also feel more friendly to someone who uses blueprints instead of having to hardcode call back names.

I recently used an HTTP plugin that creates a rest server within blueprint and what it does is, it has a node that lets you define whether something is a post/get/etc as an enum option, and then it allows you to pass a string for the route name and then you pass in a call back function to execute when the server receives a request. This design pattern is rather nice and if it would be incorporated here that would be helpful.

@getnamo
Copy link
Owner

getnamo commented Jul 25, 2023

The plugin supports event dispatchers as an option for bind, see e.g. https://github.com/getnamo/SocketIOClient-Unreal#receive-to-delegate

If you're looking for callbacks I recommend using the emit with graph callback variant that returns a latent execution in line to your current graph (can be only used inside event graphs due to latent nature) https://github.com/getnamo/SocketIOClient-Unreal#emit-with-graph-callback

If these aren't what you're looking for, provide a screenshot of the blueprint flow you're trying to achieve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants