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

Allow "rich" host/client output #365

Merged
merged 4 commits into from
Aug 4, 2024
Merged

Allow "rich" host/client output #365

merged 4 commits into from
Aug 4, 2024

Conversation

rdaum
Copy link
Owner

@rdaum rdaum commented Aug 4, 2024

Makes room for sending things other than just text to the client by allowing (in non-strict-compat mode) the notify builtin to send any MOO value to the client, not just a string.

For the existing old-school telnet host if this is a string, it outputs as usual. Otherwise it gets printed in its literal representation.

For the web host, everything is turned into its JSON equivalent.

  * When in non-strict mode (default), `notify` can now send any MOO
    value to the client.
  * The "telnet" host unwraps strings to the usual text output, but
    turns everything else into its literal value form.
  * The web host turns everything into JSON.
@rdaum rdaum merged commit a5e1236 into main Aug 4, 2024
13 checks passed
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.

1 participant