Logo
Explore Help
Sign In
logos-messaging/logos-messaging-nim
1
0
Fork 0
You've already forked logos-messaging-nim
mirror of https://github.com/logos-messaging/logos-messaging-nim.git synced 2026-01-27 02:03:06 +00:00
Code Issues Packages Projects Releases Wiki Activity
logos-messaging-nim/library/events/json_error_event.nim

17 lines
343 B
Nim
Raw Normal View History

feat(cbindings): first commit - waku relay (#1632) (#1714) * feat(cbindings): first commit - waku relay (#1632) * test_app.nim: fix compilation issue. App.init(..) -> App.new(..) * Simplifying library name (libwaku) and standardizing function names (waku_*) * Proper wrapper of the waku_node API and creation of the libwaku.a * Rolling back changes that are not needed * Rolling back changes that are out of the scope of this task * wakunode.nim: Removing unnecessary import * Aplying PR suggestions * Renaming 'waku.h' -> 'libwaku.h' * Use of 'isNil' instead of '== nil' * libwaku.nim: explicitly setting waku_poll() as gcsafe
2023-05-12 18:08:41 +02:00
import
std/json
import
json_signal_event
type JsonErrorEvent* = ref object of JsonSignal
message*: string
proc new*(T: type JsonErrorEvent,
message: string): T =
return JsonErrorEvent(
eventType: "error",
message: message)
method `$`*(jsonError: JsonErrorEvent): string =
$( %* jsonError )
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.0 Page: 33ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API