mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
add RAW framer for passthrough
This commit is contained in:
@@ -21,6 +21,8 @@ func GetFramer(framingType string) (Framer, error) {
|
||||
return NewByteSeparatorFramer([]byte{'\r', '\n'}), nil
|
||||
case "SLIP":
|
||||
return NewSlipFramer(), nil
|
||||
case "RAW":
|
||||
return NewRawFramer(), nil
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown framing method: %s", framingType)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user