Skip to content

Commit

Permalink
Expose RelayResponse.Message and RelayResponse.MessagePrefix as public (
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiu authored Aug 4, 2024
1 parent 21c46c5 commit e18ebda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/NostrSDK/RelayResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public enum RelayResponse: Decodable {
}

public struct Message {
let prefix: MessagePrefix
let message: String
public let prefix: MessagePrefix
public let message: String

init(rawMessage: String) {
let components = rawMessage.split(separator: ":", maxSplits: 1)
if let firstComponent = components.first {
Expand All @@ -59,7 +59,7 @@ public enum RelayResponse: Decodable {
}
}

enum MessagePrefix: String, Codable {
public enum MessagePrefix: String, Codable {
case unknown
case duplicate
case pow
Expand Down

0 comments on commit e18ebda

Please sign in to comment.