Message scheduler and web console improvements
The latest Hotsock release is out and allows scheduling messages for future delivery along with some updates to the web console and improved HTTP response error messages to help with your debugging efforts.
Scheduling messages
In Hotsock v1.5, you can now schedule messages for future delivery, backed by Amazon EventBridge Scheduler. This feature is available when publishing messages via Lambda, HTTP URL, or client WebSocket/HTTP, allowing you to publish a message now, but have it wait to send to channel subscribers until a specific time in the future.
To schedule a message, specify a scheduleExpression
when publishing using the one-time at()
timestamp syntax provided by EventBridge Scheduler for a timestamp in the future.
{
"channel": "my-channel",
"event": "reminder",
"data": "Don't forget about your meeting!",
"scheduleExpression": "at(2025-07-24T14:30:00)"
}
Specify a timezone for your scheduled messages using the optional scheduleExpressionTimezone
attribute:
{
"channel": "my-channel",
"event": "daily-standup",
"data": "Time for the daily standup!",
"scheduleExpression": "at(2025-07-24T09:00:00)",
"scheduleExpressionTimezone": "America/New_York"
}
For client-initiated scheduled messages, you'll need to grant permission using the scheduleBefore
claim in addition to the publish
claim, where the value is a Unix timestamp for the furthest out in time that the client is allowed to schedule messages:
{
"channels": {
"my-channel": {
"messages": {
"reminder": {
"publish": true,
"scheduleBefore": 1784820000
}
}
}
}
}
Note that this feature currently supports one-time scheduled messages only - recurring schedules are not currently supported in Hotsock.
Web console improvements
The web console has received several useful updates to improve your debugging and testing experience.
Send messages via HTTP API
You can now send both standard and raw messages directly from the web console using the client HTTP API. This makes it easier to test message publishing without needing to write custom client code or use external tools.
The console provides interface options for both message types, allowing you to quickly test your channel permissions, message formatting, and subscriber delivery.
Message timestamps
The web console now displays timestamps alongside each message with millisecond precision, so you can see exactly when messages were sent or received. This is particularly helpful when debugging message timing issues or understanding the sequence of events in your channels.
Wrapping up
Existing installations with auto-update enabled are already running v1.5 and have access to these features today. Other installations can be manually updated at any time. A full changelog is available with the complete list of changes included in this release.