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

add onSendEvent and examples with new Spacebrew UI #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adielfernandez
Copy link

Added:
example_drawing_tool
example_shared_canvas
tweaks to main ofxSpacebrew src

Added:
example_drawing_tool
example_shared_canvas
tweaks to main ofxSpacebrew src
@@ -398,6 +398,7 @@ namespace Spacebrew {
if ( bConnected ){
#ifdef SPACEBREW_USE_OFX_LWS
client.send( m.getJSON( config.clientName ) );
ofNotifyEvent(onSendEvent, m.name, this);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the only thing I would change!

  1. It should be outside of the SPACEBREW_USE_OFX_LWS preprocessor block
  2. I think it should pass the Message. Technically, apps can have > 1 publisher with the same name as long as they are different types!

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

Successfully merging this pull request may close these issues.

2 participants