@@ -59,7 +59,6 @@ import Effect (Effect)
5959import Effect.Exception (Error )
6060import Effect.Uncurried (EffectFn1 , EffectFn2 , EffectFn3 , EffectFn4 , mkEffectFn1 , mkEffectFn2 , mkEffectFn3 , mkEffectFn4 , runEffectFn1 , runEffectFn2 , runEffectFn3 , runEffectFn4 )
6161import Node.Buffer (Buffer )
62- import Node.Buffer.Immutable (ImmutableBuffer )
6362import Node.EventEmitter (EventEmitter , EventHandle (..))
6463import Node.EventEmitter.UtilTypes (EventHandle0 , EventHandle1 , EventHandle2 , EventHandle3 , EventHandle4 )
6564import Node.Http2.ErrorCode (ErrorCode )
@@ -193,17 +192,17 @@ pendingSettingsAck s = runEffectFn1 pendingSettingsAckImpl s
193192
194193foreign import pendingSettingsAckImpl :: forall endpoint . EffectFn1 (Http2Session endpoint ) (Boolean )
195194
196- ping :: forall endpoint . Http2Session endpoint -> (Maybe Error -> Milliseconds -> ImmutableBuffer -> Effect Unit ) -> Effect Boolean
195+ ping :: forall endpoint . Http2Session endpoint -> (Maybe Error -> Milliseconds -> Buffer -> Effect Unit ) -> Effect Boolean
197196ping s cb = runEffectFn2 pingImpl s $ mkEffectFn3 \err dur payload ->
198197 cb (toMaybe err) dur payload
199198
200- foreign import pingImpl :: forall endpoint . EffectFn2 (Http2Session endpoint ) (EffectFn3 (Nullable Error ) Milliseconds ImmutableBuffer Unit ) (Boolean )
199+ foreign import pingImpl :: forall endpoint . EffectFn2 (Http2Session endpoint ) (EffectFn3 (Nullable Error ) Milliseconds Buffer Unit ) (Boolean )
201200
202- pingPayload :: forall endpoint . Http2Session endpoint -> ImmutableBuffer -> (Maybe Error -> Milliseconds -> ImmutableBuffer -> Effect Unit ) -> Effect Boolean
201+ pingPayload :: forall endpoint . Http2Session endpoint -> Buffer -> (Maybe Error -> Milliseconds -> Buffer -> Effect Unit ) -> Effect Boolean
203202pingPayload s buf cb = runEffectFn3 pingPayloadImpl s buf $ mkEffectFn3 \err dur payload ->
204203 cb (toMaybe err) dur payload
205204
206- foreign import pingPayloadImpl :: forall endpoint . EffectFn3 (Http2Session endpoint ) ImmutableBuffer (EffectFn3 (Nullable Error ) Milliseconds ImmutableBuffer Unit ) (Boolean )
205+ foreign import pingPayloadImpl :: forall endpoint . EffectFn3 (Http2Session endpoint ) Buffer (EffectFn3 (Nullable Error ) Milliseconds Buffer Unit ) (Boolean )
207206
208207ref :: forall endpoint . Http2Session endpoint -> Effect (Socket TCP )
209208ref s = runEffectFn1 refImpl s
0 commit comments