def sseMessage(event):
    return 'data: %s\n\n' % json.dumps(event, default=str)
Serializes an event into the server-sent events protocol.
dataset/ETHPy150Open girder/girder/girder/api/v1/notification.py/sseMessage